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.
This commit is contained in:
Max 2026-01-25 11:51:17 +08:00
parent 994950f273
commit 4928a2e493

View file

@ -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