fix: preserve reasoning_content in conversation history for thinking models

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

No files matched your search

+1
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: