Conversation
Modern codex defaults to Responses API. Align custom provider config with this default to support endpoints that only implement /responses (e.g., tokenswitch, idealab). The legacy 'chat' value caused custom providers to fail when the upstream endpoint doesn't support /chat/completions.
This branch has not been deployed
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
Default
codexCustomWireAPIfrom"chat"to"responses"to align with modern codex behavior and support custom providers that only implement the Responses API.Problem
When using a custom provider (e.g.,
tokenswitch,idealab) with a non-defaultbase_url, skill-up generates codex command-line flags like:This overrides the provider's configured
wire_apisetting, forcing codex to use/chat/completions. If the upstream endpoint only supports/responses, the request fails or hangs.Solution
Change
codexCustomWireAPIfrom"chat"to"responses":This aligns with modern codex defaults (which already use
"responses") and ensures compatibility with custom providers that implement the Responses API.Impact
Note: Modern codex defaults to
"responses"anyway, so custom providers that only support Chat API are already incompatible with current codex versions.Testing
Verified with
tokenswitchprovider (Responses API only):Related