remove temperature - #1421
Conversation
PR Summary by QodoStop setting temperature for OpenAI Responses requests
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. Responses ignore requested temperature
|
|
|
||
| var options = new CreateResponseOptions(_model, []) | ||
| { | ||
| Temperature = temperature, |
There was a problem hiding this comment.
1. Responses ignore requested temperature 🐞 Bug ≡ Correctness
Removing CreateResponseOptions.Temperature makes the Responses API ignore the documented MessageConfig.Temperature value stored by the conversation controller. Because UseResponseApi is enabled by default in WebStarter, callers can request a sampling temperature but receive output generated with the provider default instead.
Agent Prompt
## Issue description
The Responses API path no longer propagates the caller's temperature, so the public temperature control is silently ignored and generation uses the provider default.
## Issue Context
`MessageConfig.Temperature` is documented as controlling completion creativity and is stored in conversation state. WebStarter enables the Responses API by default, while the sibling Chat Completions path still reads and applies the same state. Preserve temperature for compatible non-reasoning requests while omitting it only for models/options that reject it.
## Fix Focus Areas
- src/Plugins/BotSharp.Plugin.OpenAI/Providers/Chat/ChatCompletionProvider.Response.cs[441-459]
- src/Plugins/BotSharp.Plugin.OpenAI/Providers/Chat/ChatCompletionProvider.Chat.cs[612-639]
- src/Infrastructure/BotSharp.Abstraction/Models/MessageConfig.cs[23-26]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
No description provided.