Merge pull request #604 from winterfx/fix/reasoning-content-missing

fix: preserve reasoning_content for OpenAI-compatible reasoning models
This commit is contained in:
daming大铭 authored and GitHub committed 2026-02-24 14:20:36 +08:00
commit b6e965e549
4 files changed
+65 -16

No files matched your search

+3 -2
View File
@@ -626,8 +626,9 @@ func (al *AgentLoop) runLLMIteration(
// Build assistant message with tool calls
assistantMsg := providers.Message{
Role: "assistant",
Content: response.Content,
Role: "assistant",
Content: response.Content,
ReasoningContent: response.ReasoningContent,
}
for _, tc := range normalizedToolCalls {
argumentsJSON, _ := json.Marshal(tc.Arguments)