Repository navigation
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.
|
The existing Alibaba Cloud Model Studio does support OpenAI-compatible Responses API, so it should not be described as universally Chat-only. Support depends on the selected model and endpoint/plan: its official Codex guide provides Responses configurations for supported models, while still documenting Chat-only configurations with Codex 0.80.0, including the Coding Plan endpoint. Newer Codex versions still support custom providers, but Chat Completions support was removed in 0.95.0. Version 0.80.0 supports both protocols, so switching this constant to Could we make |
Sounds good.Let me look into it. |
|
Related follow-up: #415 implements the configurable wire_api approach discussed here, retaining chat for existing 0.80.0/Chat-only setups and allowing explicit responses for modern Codex and compatible providers. It adds a required real-CLI CI matrix (0.169.0/responses and 0.80.0/chat+responses), verifies the resumed request includes prior user and assistant history, and proves the old production resume ordering fails before testing the fix. Confirmed CI evidence: Codex 0.169.0 + Responses + qwen3.6-plus passed real DashScope two-turn recall with the repository credential: https://github.com/alibaba/skill-up/actions/runs/43836792781/job/133195313874 . This establishes modern-version compatibility for that endpoint/model/key, not every DashScope plan. Separately, real 0.80.0/chat CI confirmed the original adapter ordering fails on turn two and the fix passes with full outgoing history: https://github.com/alibaba/skill-up/actions/runs/43836685259/job/133195187765 . Legacy 0.80.0/chat also passed real DashScope two-turn recall, completing the manual matrix: https://github.com/alibaba/skill-up/actions/runs/43836792781/job/133195314486 . Latest-head CI is still pending; completed evidence above is at 352ce9e, before a workflow-summary-only update. The local credential lacks a Responses workspace binding, which is a credential-specific restriction, not evidence that modern Codex cannot access DashScope. Modern coverage is prioritized while legacy defaults/regression coverage remain. Linking for joint review rather than automatically closing or superseding this PR. |
zpzjzj
left a comment
There was a problem hiding this comment.
Requesting changes on 73f43c3: this still changes the custom-provider default from chat to responses, breaking existing Chat-only configurations. The configurable approach discussed in the review has now landed in #415. Please reconcile this PR with that implementation rather than unconditionally changing the compatibility default. Tests should preserve explicit chat and responses behavior. No automatic closure is implied.
|
Following up on the existing compatibility review: |
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