Repository navigation
fix(provider): skip must clear leftover Codex thinking effort - #87
Merged
Merged
Conversation
Codex 0.150 sends reasoning.effort whenever isolated config.toml or the catalog has a level. A previous /model or launch left high in the provider home, so picker skip still showed high and some gateways 404'd POST /responses. Clear that key on launch, drop it from extras on skip, and catalog non-thinking slugs with no default. Co-authored-by: lolitaupdate <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Codex 0.150.1 still showed
deepseek-v4-flash highafter the launch picker chose(skip), thenPOST {base_url}/v1/responses404'd.Two leftovers were still a thinking level:
config.toml. Codex writesmodel_reasoning_effortwhen/modelchanges effort. Skip only omitted-c, so 0.150 sent the leftoverhigh.none. 0.150 always putsreasoning.efforton the request when the catalog has a default, includingnone. Some gateways 404 on that field.Change
model_reasoning_effortfrom$CODEX_SWITCH_HOME/providers/<alias>/codex-home/config.tomlon every provider launch. This launch's-cis the only way that key comes back.--set model_reasoning_effort=…extras.supported_reasoning_levelslist and omitdefault_reasoning_level.If a slug still 404s after skip, that id has no Responses channel; pick another.
Tests
cargo test --lib provider::cargo test --lib launch::cargo test --test test_launch_passthroughcargo clippy --all-targets -- -D warningscargo test --allNew coverage: leftover isolated
highis stripped; skip drops extras; skip catalog for a saved-high slug has no default.