Skip to content

feat: add priority API key pools and worker key selection - #9

Merged
two-tiger merged 1 commit into
AI45Lab:mainfrom
xxxyxun:feature/api-key-pool
Oct 29, 2026
Merged

two-tiger merged 1 commit into
AI45Lab:mainfrom
xxxyxun:feature/api-key-pool

Conversation

@xxxyxun

@xxxyxun xxxyxun commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

改动

  • 支持 MiniMax、Kimi 独立号池,按优先级选择,并在明确的额度错误后切换 key。
  • 支持通过 --slow-key-ids 1,2,3,4 或 key_pool.key_ids 指定使用范围。
  • 指定多个 key 时按 worker 均分,正常请求固定使用分配到的 key,故障仅在指定集合内切换。
  • 手填 api_key 时不读取默认号池;密钥不提交到仓库。
  • MiniMax 默认使用 max;Kimi 默认不传思考强度参数。
  • 补齐 README 用法,并同步更新相关旧测试断言。

验证

  • 相关 pytest:59 passed。
  • Ruff:通过。
  • GPFS 8 进程分配验证:4 把 key 各分到 2 个进程。
  • 开发故障注入:优先级切换、未知 403 处理、手填 key 隔离通过。
  • 真实调用:MiniMax 6 把、Kimi 3 把均成功。

范围

不修改 Planner、JEV、CLI 执行、Verify 或评分逻辑。
尚未进行 OSWorld 回归和跨节点压力测试。

@two-tiger two-tiger left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@two-tiger
two-tiger merged commit 231e862 into AI45Lab:main Oct 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants