You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Agent temperature is dropped for config-defined custom OpenAI-compatible models #34554
When a model is defined only in opencode.json under a custom provider, agent.<name>.temperature can be silently dropped even though the request goes through the OpenAI-compatible path.
This happens because the custom-model merge path defaults capabilities.temperature to false when the config entry omits that field. Session request construction then strips temperature before the provider request is built.
This issue might be a duplicate of existing issues. Please check:
Agent temperature parameter is not passed to LLM API requests #34405: Same bug — agent temperature parameter not passed to LLM API requests for custom OpenAI-compatible providers, identical config structure (myprovider/MiniMax-M2.7, @ai-sdk/openai-compatible), same version and OS.
Hi, I've opened a fix for this: #41016. It defaults the temperature capability to enabled for config-defined custom models (explicit temperature: false still wins), and includes regression tests verifying the agent temperature is forwarded in the request body. Verified locally: 129 pass / 0 fail across the provider and llm suites.
Activity
github-actions commentedon Jun 30, 2026
This issue might be a duplicate of existing issues. Please check:
temperatureparameter not passed to LLM API requests for custom OpenAI-compatible providers, identical config structure (myprovider/MiniMax-M2.7,@ai-sdk/openai-compatible), same version and OS.SeashoreShi commentedon Aug 8, 2026
Hi, I've opened a fix for this: #41016. It defaults the temperature capability to enabled for config-defined custom models (explicit
temperature: falsestill wins), and includes regression tests verifying the agent temperature is forwarded in the request body. Verified locally: 129 pass / 0 fail across the provider and llm suites.github-actions commentedon Oct 7, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.