Repository navigation
feat: 支持以请求头指定处理账户 - #138
Merged
Merged
Conversation
Mag1cFall
force-pushed
the
feat/request-account
branch
from
November 10, 2026 18:21
2178a35 to
a3ba602
Compare
Mag1cFall
force-pushed
the
feat/request-account
branch
from
November 10, 2026 21:37
a3ba602 to
81b92f5
Compare
- 续写轮沿用首轮写入的 proof,Camoufox 后端沿用页面为首轮写入的 proof 直接发送 - 续写轮遇到可换账户的错误时换到其他账户,以同一续写 token 重发该轮,额度失败的账户进入冷却 - 换账户后转发、认证检查与用量明细跟随当前账户,被换下的账户立即释放 - 账户运行状态锁在请求期限内等到释放 - 协议、开发与日志文档说明续写轮的 proof、换账户与锁等待
- 公开 API 读取 X-AIStudio-Account 请求头,账户池只在该账户上选号并与 API key 绑定取交集 - 视频后台生成与 Gemini 可续传上传沿用请求指定的账户,可续传上传完成时沿用开始请求的 key 绑定 - 指定账户不存在或不在本次请求可用的账户中时返回写明该账户的错误,补齐六种语言译文 - README 与协议文档说明请求头的用法
Mag1cFall
force-pushed
the
feat/request-account
branch
from
November 11, 2026 19:41
81b92f5 to
7df460a
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.
改动 / Changes
/v1、/v1beta与/upload/的请求带X-AIStudio-Account: <账户>请求头时只由该账户处理,上游出错时直接返回它的错误,不换到其他账户;视频后台生成与 Gemini 可续传上传同样只用该账户account_required,错误写明该账户,六种界面语言都有译文docs/protocol.md说明这个请求头验证 / Verification
generateContent与 Anthropic Messages 各以请求头指定两个账户发一次请求,6 个请求都返回 200,用量明细中的处理账户都与指定的账户相同账户 <账户> 不存在