feat(gateway): 网关双域,CN/国际版混池 - #45
Open
ZYHUO wants to merge 2 commits into
Open
Conversation
- auth: 新增 IsGlobal()/Realm(),domain 后缀 .workbuddy.ai 判 global,空回落 CN - login: --realm=cn|global,base+Origin 按域切换,state 落盘带 Realm 防混域 - login.sh: --realm 透传,global 跳过 CN 签到 - CN 默认行为零变化
- upstream: ChatBase/BillingBase 按账号域切换;chat 路径 global 走 /console/chat/completions + 首条 system 兜底;billing 路径 global 走 网关代理相对路径 /billing/meter/*;FetchModels global 改 6 并发 最小流式探测(48 候选,实测 14 可用:14 见 globalProbeModels) - pool: /status 透出 realm=cn|global - scheduler/signin/credit: 路径按域切换;国际版签到活动未开启 (10001)走 ALREADY 口径,不算失败;report 上报 global 照常 - tests: realm/auth 双域 + chatURL/system 兜底 + bases 切换 - CN 默认行为零变化(空 domain/ChatBaseGlobal 回落 CN)
4 tasks
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
/console/chat/completions+ 首条 system 兜底;billing 路径 global 走网关代理相对路径/billing/meter/*实测
Stacks on