fix: preserve reasoning_content in conversation history for thinking models

This commit is contained in:
Re-bin
2026-02-08 18:37:41 +00:00
parent b4217b2690
commit 2931694eb8
5 changed files with 16 additions and 4 deletions

View File

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