From eff701c485c484134ce7907f0ecff996f6ff5c2c Mon Sep 17 00:00:00 2001 From: itismygo <167516635+itismygo@users.noreply.github.com> Date: Fri, 12 Dec 2025 04:14:01 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20grok-imagine-0.9=20?= =?UTF-8?q?=E5=90=8C=E6=97=B6=E6=94=AF=E6=8C=81=E6=96=87=E7=94=9F=E5=9B=BE?= =?UTF-8?q?=E5=92=8C=E5=9B=BE=E7=94=9F=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 恢复 is_video_model: True 以支持视频生成 - 更新模型描述说明支持两种模式 - 保留空列表安全访问修复 根据 xAI 官方文档,grok-imagine-0.9 支持: 1. 文本 → 图片 (text-to-image) 2. 图片 + 文本 → 视频 (image-to-video) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- app/models/grok_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/grok_models.py b/app/models/grok_models.py index fe15fc7..b067c54 100644 --- a/app/models/grok_models.py +++ b/app/models/grok_models.py @@ -103,13 +103,13 @@ _MODEL_CONFIG: Dict[str, Dict[str, Any]] = { "cost": {"type": "low_cost", "multiplier": 1, "description": "计1次调用"}, "requires_super": False, "display_name": "Grok Imagine 0.9", - "description": "Image generation model powered by Grok", + "description": "Image and video generation model. Supports text-to-image and image-to-video generation.", "raw_model_path": "xai/grok-imagine-0.9", "default_temperature": 1.0, "default_max_output_tokens": 8192, "supported_max_output_tokens": 131072, "default_top_p": 0.95, - "is_video_model": False + "is_video_model": True } }