support official DeepSeek Responses - #1769
Open
Rat0323 wants to merge 9 commits into
Open
Conversation
Rat0323
marked this pull request as ready for review
August 4, 2026 05:01
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
deepseek-v4-flashanddeepseek-v4-pro; upstream remains the source of truth for availabilitydeepseek.comor a subdomain.gitattributesEOL normalization fix used by upstream asset checksScope
The provider presets are convenience templates that populate profile fields; Codex++ does not persist a preset identity.
This compatibility therefore applies at the profile level. It is enabled when:
protocol = responsesdeepseek.comor one of its subdomainsA profile created manually with the official DeepSeek Responses endpoint receives the same compatibility handling. Changing the preset URL to a third-party relay leaves that relay's existing behavior unchanged.
This PR does not infer provider capabilities from model names and does not add a generic DeepSeek compatibility mode. Third-party relays may expose DeepSeek, GLM, Doubao, GPT, or mixed catalogs with different tool behavior.
Root cause
Codex Code Mode publishes a Responses custom tool named
exec. DeepSeek's official Responses endpoint rejects it withUnsupported custom tool: 'exec'.For official DeepSeek Responses profiles, Codex++ writes the effective live configuration with:
Unified Exec is a separate path that publishes the function tools
exec_commandandwrite_stdin, so it remains unchanged.Chat Completions also remains available through Codex++'s existing protocol proxy. It does not use this Responses-specific workaround.
The existing active-profile save flow is preserved. Its backend config write now applies the same official-endpoint compatibility transform, so saving an active official DeepSeek Responses profile cannot bypass the adapter.
Validation
npm run checknpm test(37 passed)cargo fmt --all -- --checkcargo test -p codex-plus-manager --lib --locked -- --test-threads=1(43 passed)cargo test -p codex-plus-core --lib --locked -- --test-threads=1(208 passed)cargo test -p codex-plus-core --test relay_config --test relay_switch --test model_suffix --locked -- --test-threads=1(132 passed)git diff --checkRegression coverage includes manually created official DeepSeek Responses profiles, official-login profiles mixed with an API key, third-party Responses profiles, and official DeepSeek Chat Completions profiles.