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:
parent
994950f273
commit
4928a2e493
1 changed files with 0 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue