Repository navigation
fix(providers): omit temperature for always-reasoning models - #286
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
# Conflicts: # CHANGELOG.md
|
Merged on 2026-11-16 as 782d5fb ("Merge PR #286"), fixes #285. Thanks for tracking this down, and for the request-level tests on both protocols! We reproduced it on main: with Auto effort, gpt-5, gpt-5-mini, o3 and o4-mini all went out with We checked the rule against 36 model names. It matches OpenAI's current behaviour:
We added one small follow-up, cb55c51. It moves the pattern next to The CHANGELOG hunk conflicted with newer entries, so it is folded into the 2026-11-16 "Community fixes" entry, in both languages. |
Fixes #285.
With reasoning effort left on Auto, OpenAI-compatible requests still included
temperaturefor older GPT-5 and o-series models that reject it. Omit the parameter for these always-reasoning model families in both Chat Completions and Responses requests. Keep the existing behavior for later GPT-5.x and GPT-5 Chat models, and preserve explicitcompat.temperatureoverrides.Add HTTP request-level regression coverage for both protocols and compatibility boundaries, plus a changelog entry.
Validation on macOS / Python 3.12:
npm test): 51 files, 355 tests passed.pre-commit run --all-files,pip check, Desktop lint, typecheck and protocol checks passed.Python tests ran with the project virtualenv on PATH and
TERM=xterm-256color;TERM=dumbtriggers a different prompt-toolkit Ctrl-C path in an existing terminal test. Provider tests use a local mock HTTP transport; no live model requests were made.