[codex] Add configurable OpenAI-compatible gateway#9
Closed
Neonity2020 wants to merge 8 commits into
Closed
Conversation
Collaborator
|
感谢这个 PR 付出的工作 @Neonity2020 👍 很遗憾这个 PR 我们没法合并,主要原因如下: 与现有的 gateway 实现严重冲突。 最近
两套方案在职责上高度重叠,合并意味着推倒重来,因此只能二选一。目前仓库已经采用了落地版本,所以先关闭这个 PR。 如果后续有部分能力(例如 fallback 策略、模型动态发现)想作为补充合进来,欢迎基于最新的 |
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.
What Changed
Why
UI Changes
Checklist
Summary
Adds a PeakCode-hosted OpenAI-compatible gateway so Codex can route selected
third-party models through the app instead of requiring each tool to be
configured independently.
What changed
UI for configuring upstream providers and API keys.
model names.
peakcode-gatewayCodex provider overlay.
/models,/chat/completions, and/responsesgateway endpoints, including Responses-to-Chat translation for Codex.
DeepSeek gateway models to GPT-5.5 restores the normal Codex provider path.
Validation
vitest run src/http.test.ts --testTimeout=10000vitest run src/codexAppServerManager.test.ts --testTimeout=10000git diff --checknpm run dist:desktop:dmg:arm64Notes
Full workspace
bun fmt,bun lint, andbun typecheckwere not run in thissession per local AGENTS.md guidance unless explicitly requested.