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大铭
2026-02-24 14:20:36 +08:00
committed by GitHub
4 changed files with 65 additions and 16 deletions
+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)