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
Commit e879f8d
Browse filesBrowse the repository at this point in the historyBrowse files
feat(opencode-go): opt-in temperature for Responses models (#2055) (#2160)
* feat(opencode-go): opt-in temperature for Responses models (#2055)
OpenCode Go Responses-format models now send temperature only for verified
model and reasoning-effort combinations. This applies to both the streaming
and non-streaming Responses requests. The settings UI uses the same rule: it
hides the temperature control when the value would not be sent. Hiding the
control does not clear or reset a saved temperature.
- grok-4.6, muse-spark-1.3-contributor and muse-spark-1.2-contributor:
temperature is sent at any reasoning effort.
- gpt-5.6-luna and gpt-6-luna: temperature is sent only when the effective
reasoning effort is "none". At other efforts the gateway returns HTTP 400 for
every value except 1, which is the OpenAI reasoning default rather than real
support, so the value is left out.
- Temperature is sent only when the user has set a custom value. The provider
default is never sent on this route.
Changes:
- types: add OPENCODE_GO_TEMPERATURE_REASONING_EFFORTS and
opencodeGoResponsesSupportsTemperature(), and set supportsTemperature on
every Responses model.
- handler: add getResponsesTemperature(), which reads the raw modelTemperature
setting and applies the opt-in rule; remove the unused temperature parameter
from streamResponsesMessage; update the route comments so they no longer say
the Responses route is Luna-only.
- webview: add isTemperatureControlSupported(), which ApiOptions uses to decide
whether to show TemperatureControl. It works out the effective reasoning
effort the same way the request builder does.
- tests: cover the rule, the model registry, the fetcher merge, both request
modes, a stale "none" effort while reasoning is switched off, and the UI
visibility round trip with the saved value kept.
Shared transforms (getModelParams, RouterProvider) are unchanged.
Refs #2006Closes#2055
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(webview): add visual snapshot for OpenCode Go temperature visibility (#2055)
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments