support official DeepSeek Responses endpoints - #1769
Open
Rat0323 wants to merge 13 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.
Problem
Codex++ cannot currently use Codex Code Mode with DeepSeek's official Responses API. Code Mode publishes a custom
exectool, while the official DeepSeek endpoint rejects that tool withUnsupported custom tool: 'exec'.This affects both the built-in DeepSeek preset and manually configured suppliers that point to the same official Responses endpoint. Treating the preset as the compatibility boundary would leave equivalent custom configurations broken.
Design
Add provider capability handling at the configuration boundary. The DeepSeek adapter is selected when the active provider resolves to:
Endpoint detection uses the effective host (
deepseek.comor a subdomain), not the preset ID, provider name, or model name. Values in the configuration being saved take precedence over stale profile fields.For matching configurations, Codex++ disables Code Mode while preserving Unified Exec:
Unified Exec remains available through the supported
exec_commandandwrite_stdinfunction tools. Existing feature tables, including inline tables, retain unrelated settings.Endpoint-based detection keeps the workaround scoped to the capability that requires it:
Model catalog
Add bundled metadata for the official DeepSeek Responses models:
deepseek-v4-flashin the default presetdeepseek-v4-prometadata withsupported_in_api = falsetool_mode = nullandsupports_search_tool = falsemodel_catalog_jsonvaluesApplying a matching supplier profile generates this metadata for supported
deepseek-v4-*entries. Direct config-file saves apply the compatibility transform without generating a catalog when profile and model-list context is unavailable.CI prerequisite
Include the line-ending normalization from #1735. The upstream asset checks otherwise depend on checkout line endings and can fail before validating this change.
Validation
cargo test -p codex-plus-core --test relay_config --locked -- --test-threads=1(114 passed)cargo test -p codex-plus-core --test model_suffix --locked -- --test-threads=1(15 passed)cargo test -p codex-plus-core --lib --locked -- --test-threads=1(208 passed)npm testinapps/codex-plus-manager(37 passed)cargo fmt --all -- --checkgit diff --checkReferences