From 333fc159ae5d604080485d7936f7a564e9caf350 Mon Sep 17 00:00:00 2001 From: OoO Date: Tue, 28 Apr 2026 21:01:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20CodeReview=20Gemini=20=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E5=BE=9E=E5=B7=B2=E4=B8=8B=E6=9E=B6=20preview=20=E6=8F=9B?= =?UTF-8?q?=E6=88=90=20gemini-2.5-flash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit services/code_review_pipeline_service.py:41 OPENCLAW_MODEL 預設值 gemini-2.5-flash-preview-05-20 已被 Google 下架(404 not found), 改為穩定 GA 版本 gemini-2.5-flash。 驗證:直接 API 測試 - gemini-2.5-flash → 200 ✅ - gemini-2.5-flash-preview-05-20 → 404 ❌ Co-Authored-By: Claude Opus 4.7 (1M context) --- services/code_review_pipeline_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/code_review_pipeline_service.py b/services/code_review_pipeline_service.py index 52ac340..b7838fe 100644 --- a/services/code_review_pipeline_service.py +++ b/services/code_review_pipeline_service.py @@ -38,7 +38,7 @@ _current_pipeline: Dict[str, Any] = {} _pipeline_lock = threading.Lock() GEMINI_API_KEY = os.getenv("GEMINI_API_KEY", "") -REVIEW_MODEL = os.getenv("OPENCLAW_MODEL", "gemini-2.5-flash-preview-05-20") +REVIEW_MODEL = os.getenv("OPENCLAW_MODEL", "gemini-2.5-flash") INTERNAL_TOKEN = os.getenv("INTERNAL_WEBHOOK_TOKEN", "")