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
fix: respect supportsTemperature flag in OpenAI-compatible providers
When models like Claude Opus 4.7 are proxied through OpenAI-compatible
gateways, sending the temperature parameter causes a 400 error because
the model has deprecated it.
This change:
- Uses the existing supportsTemperature ModelInfo field in model-params.ts
to omit temperature when supportsTemperature === false
- Adds the same guard in OpenAiHandler, BaseOpenAiCompatibleProvider,
and OpenAICompatibleHandler
- Adds a "Supports Temperature" checkbox in the OpenAI Compatible
settings UI so users can toggle it off for models that need it
- Adds test coverage for the new behavior
Closes#12162
0 commit comments