From 4928a2e49375ce4c7e0e5c852531be65fdcad7dd Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 25 Jan 2026 11:51:17 +0800 Subject: [PATCH] Remove Debugging Output from OpenAI Provider Request Body - Eliminated debug print statements for the "thinking" parameter and the full request body in the OpenAI provider, streamlining the request construction process. - Maintained the functionality of including the "thinking" parameter for models that support reasoning/thinking mode, ensuring improved performance without unnecessary logging. --- agent/llm/providers/openai/openai.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/agent/llm/providers/openai/openai.go b/agent/llm/providers/openai/openai.go index f6390821..52d0afa4 100644 --- a/agent/llm/providers/openai/openai.go +++ b/agent/llm/providers/openai/openai.go @@ -1211,12 +1211,6 @@ func (p *Provider) buildRequestBody(messages []context.Message, options *context // Add thinking parameter for models that support reasoning/thinking mode if thinkingSetting != nil { body["thinking"] = thinkingSetting - fmt.Printf("[DEBUG] Adding thinking parameter to request: %+v\n", thinkingSetting) - } - - // Debug: Print full request body - if bodyJSON, err := jsoniter.MarshalIndent(body, "", " "); err == nil { - fmt.Printf("[DEBUG] Request body:\n%s\n", string(bodyJSON)) } return body, nil