feat: 默认模型升级 grok-4.6,拉取模型直连官方并按官方列表重建 - #14
Merged
Conversation
- 官方上游 /models 已只返回 grok-4.6(grok-4.5 与 -build-free 变体均已下线, 实测 grok-composer-2.5-fast 被上游别名到 grok-4.5);默认模板与巡检探测 全量切换到 grok-4.5 -> grok-4.6,并在启动迁移中把存量 Profile 里钉在 grok-4.5 的引用升级到 grok-4.6 - 「拉取模型」对 Grok Auth(本地代理)Profile 改为直连官方上游:用号池 token 请求 /models(复用号池代理设置,单账号自动回退),并按官方响应 重建已启用模型列表,采用官方元数据(context_window、api_backend、 supports_reasoning_effort、reasoning_efforts 含 xhigh);官方列表已不含 的模型(如 plan composer)保留,grok-4.5 一律抛弃;失效的默认/联网/ 子代理引用自动修正;Profile 处于启用状态时立即重写 config.toml - 前端拉取成功后按官方结果重建已启用模型卡片与默认模型下拉框 - 修复 extractModels 将模型显示名(如 "Grok 4.6")误当作模型 ID 收集的问题 - 巡检 pickModel 优选列表改为 grok-4.6 / grok-4.6-build-free / grok-4 / grok-3-mini,探测默认模型同步升级
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.
背景
实测官方上游
/models现在只返回grok-4.6(grok-4.5/grok-4.5-build-free均已下线,grok-composer-2.5-fast被上游别名到 grok-4.5),而工具内默认模型与巡检探测仍钉在 grok-4.5;「拉取模型」也只更新建议列表,已启用模型仍是硬编码的旧默认。改动
defaultGrokAuthModels、Profile 默认值、巡检探测模型与pickModel优选列表(grok-4.6/grok-4.6-build-free/grok-4/grok-3-mini)全量切换;启动迁移把存量 Profile 里钉在 grok-4.5 的引用升级到 grok-4.6/models(复用号池代理设置,单账号自动回退),并按官方响应重建已启用模型列表,采用官方元数据(context_window、api_backend、supports_reasoning_effort、reasoning_efforts含 xhigh);官方列表已不含的模型(plan composer)保留,grok-4.5 一律抛弃;失效的默认/联网/子代理引用自动修正;Profile 处于启用状态时立即重写 config.tomlextractModels把模型显示名(如 "Grok 4.6")误当作模型 ID 收集验证
go test ./...14 个包全部通过