feat: 新增 auto/fast/expert/heavy 简洁模型,优先使用高等级号池#454
Merged
chenyme merged 1 commit intochenyme:mainfrom Apr 12, 2026
Merged
Conversation
Add `prefer_best` flag to ModelSpec that reverses pool candidate
order (heavy → super → basic), so requests are served by the
highest-tier available account first and only fall back when all
accounts in higher pools are exhausted.
New models: grok-4.20-{fast,auto,expert,heavy}
- No version suffix — intended as "latest" aliases
- Original 15 models unchanged (prefer_best defaults to False)
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
新增
prefer_best标志位和 4 个 prefer-best 聊天模型,反转账号池选择顺序(heavy → super → basic),让请求优先消耗高等级账号。设计动机
0309),数量多且命名相似,选起来费劲。干脆对应 Grok 官网四个档位(auto/fast/expert/heavy)各出一个简洁别名,一眼就知道选哪个。prefer_best默认False,选池逻辑不变,零影响。选池对比
prefer_best=Falseprefer_best=True新增模型
grok-4.20-fastgrok-4.20-autogrok-4.20-expertgrok-4.20-heavyprefer_best默认False)变更文件
app/control/model/spec.pyprefer_best字段 + 反向pool_candidates()逻辑app/control/model/registry.pyTest Plan
grok-4.20-auto/grok-4.20-fast/grok-4.20-expert,验证选池顺序为 heavy → super → basicgrok-4.20-heavy,验证只走 heavy only 号池grok-4.20-0309),验证选池行为不变