feat(upstreams): add optional Responses API-key providers - #384
Open
KaynXu wants to merge 1 commit into
Open
Conversation
KaynXu
force-pushed
the
kaynxu/deepseek-upstream
branch
from
September 13, 2026 07:14
4641f43 to
64d9d66
Compare
KaynXu
marked this pull request as ready for review
September 13, 2026 07:14
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.
Teams can retain Codex OAuth accounts while routing selected existing Pool keys to a Responses API provider. This adds explicit encrypted API-key credentials, model discovery, existing policy-based model enforcement and token accounting. For example, an unchanged client requesting an OpenAI model can be assigned a provider model by its key policy; responses and accounting identify the actual provider model.
The adapter bridges native WebSocket clients to provider HTTP/SSE, translates namespaced/custom tools, reconstructs incremental history in a bounded key-isolated RAM cache, and supports client-carried encrypted compaction summaries. API credentials are excluded from Codex quota and OAuth refresh flows. Provider headers are restricted, redirects are disabled, and missing provider prices remain unpriced. Existing Codex behavior is retained. Import currently uses the operator-scoped Elixir API documented in the new operator guide.
Validation on the current upstream
main(6b514123):deepseek-flashprobes verified streaming, image input, tool/result continuation, and a real Codex client file write/read completion.Known limitations:
The GitHub Actions workflow for this fork contribution is awaiting maintainer approval before it can start.