fix: preserve reasoning_content and thinking_blocks in session history

This commit is contained in:
Re-bin
2026-02-28 17:37:12 +00:00
parent a47c2e9a37
commit 5ca386ebf5
4 changed files with 10 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ class LLMResponse:
finish_reason: str = "stop"
usage: dict[str, int] = field(default_factory=dict)
reasoning_content: str | None = None # Kimi, DeepSeek-R1 etc.
thinking_blocks: list[dict] | None = None # Anthropic extended thinking
@property
def has_tool_calls(self) -> bool: