Repository navigation
feat: 支持多个 OpenAI 上游 API 的配置与管理 - #202
Merged
Merged
Conversation
PR 安全初筛 / Safety pre-check改动 25 个文件;高 0 项、中 8 项。
「高」不等于有问题,只是这些地方一旦被动手脚,后果最重(能拿到签名钥匙、改到用户手机上的权限、或藏进看不见的内容),合并前请逐行看过。 |
7 of 9 tasks
Stage per-API endpoints, keys and models behind capability negotiation; validate full topology and scoped credential reuse, preserve stable model aliases/windows and the existing local provider, cancel discovery on API switches, and clear replacement-key drafts. Cover legacy fallback, protocol bounds, runtime gates and UI isolation with focused regression tests. Co-Authored-By: Claude Code <noreply@anthropic.com>
chenshi723
force-pushed
the
feat/bridge-multi-upstream
branch
from
November 9, 2026 12:34
60a6326 to
8e14108
Compare
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 and why
配套组件源 PR:chenshi723/cccodroid-openai-bridge#6 (
5dd81d8,r19)。配套市场配方 PR:greyoak111/cccodroid-components#69 (r17→r19,需与 App 一起合入)。
现有扩展页只能管理一个 OpenAI 上游 endpoint。本 PR 补齐多个 API 的实际配置界面和网关契约,仍使用一个受管回环桥接口:
怎么测的 / How it was tested
设备:HONOR PPG-AN00 / Android17 / aarch64 / Node26。
main(7721ad8,v0.6.13)并重新生成8份语言词典;合并上游readBodyBuf改为返回400的行为,超限阈值随本分支的512KiB配置上限调整。node scripts/test.mjs bridge-config bridge-models managed-run:233项通过(网关、UI假DOM、模型、运行闸门);另补compact/status中断UI回归。OPENAI_BRIDGE_APP_SOURCE=<本App源码> node tests/test-gui-app.cjs --multi-upstream通过,同源双账户分别Key、删除主API、别名/窗口/本地实例/恢复预算保留,远端连接数=0。--configuring中断恢复联调通过;无远端请求。git diff --check、网关/UI JS语法检查通过。仅隔离临时HOME、假配置、回环假服务,不改当前运行App/真实Key。不把假DOM/源码联调当作CI APK安装或原生WebView验收:未安装CI APK,不替换正式App,不清用户数据。合入后仍需维护者按配套版本做签名安装/界面验收;不自动合并或发版。
🤖 Generated with Claude Code