Skip to content

Commit a26da3c

Browse files
committed
修复: Workers 模型目录同步
修复: Workers 模型目录同步
1 parent 424e4fd commit a26da3c

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

src/grok/models.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,18 @@ export const MODEL_CONFIG: Record<string, ModelInfo> = {
145145
supported_max_output_tokens: 131072,
146146
default_top_p: 0.95,
147147
},
148+
"grok-imagine-1.0-fast": {
149+
grok_model: ["grok-3", "MODEL_MODE_FAST"],
150+
rate_limit_model: "grok-3",
151+
display_name: "Grok Image Fast",
152+
description: "Imagine waterfall image generation model for chat completions",
153+
raw_model_path: "xai/grok-imagine-1.0-fast",
154+
default_temperature: 1.0,
155+
default_max_output_tokens: 8192,
156+
supported_max_output_tokens: 131072,
157+
default_top_p: 0.95,
158+
is_image_model: true,
159+
},
148160
"grok-imagine-1.0": {
149161
grok_model: ["grok-3", "MODEL_MODE_FAST"],
150162
rate_limit_model: "grok-3",

work.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@
4444
- **方案**: 移植 chenyme 的 batch.py(run_batch + BatchTask SSE 任务管理器)
4545
- **修改文件**: `app/core/batch.py`(新建)
4646

47+
### 修复: Workers 模型目录同步
48+
- **问题**: CI 检查 `check_model_catalog_sync.py` 失败,`grok-imagine-1.0-fast` 仅存在于 `model.py` 而不在 `models.ts`
49+
- **方案**: 在 `src/grok/models.ts` 中添加对应的 `grok-imagine-1.0-fast` 条目
50+
- **修改文件**: `src/grok/models.ts`
51+
4752
### B8: 配置迁移系统增强
4853
- **问题**: tqzhr 配置系统缺少废弃键迁移和未知键修剪
4954
- **方案**: 添加 _migrate_deprecated_config 和 _prune_unknown_config 函数,集成到 load/update 流程

0 commit comments

Comments
 (0)