From 7a193934ed7f505508df1f25b1dcd80f9021cbea Mon Sep 17 00:00:00 2001 From: wangbo Date: Fri, 31 Jul 2026 02:27:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(acceptance):=20=E4=BC=98=E5=85=88=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E7=A8=B3=E5=AE=9A=E7=89=88=20Gemini=20=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 生产同构验收默认优先选择当前稳定版 gemini-3.1-flash-image,并在回退选择中将非 preview 模型置于预览版之前,避免选中并发 5 的预览候选后与千请求八分钟门槛产生物理冲突。\n\n候选确定后的正式路由优先级与真实限流策略保持不变。\n\n验证:bash -n;ShellCheck;git diff --check。 --- scripts/cluster/run-production-acceptance.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/cluster/run-production-acceptance.sh b/scripts/cluster/run-production-acceptance.sh index d7bd6dd..a0baf42 100755 --- a/scripts/cluster/run-production-acceptance.sh +++ b/scripts/cluster/run-production-acceptance.sh @@ -371,7 +371,13 @@ WHERE platform.status='enabled' AND platform.deleted_at IS NULL AND lower(platform.provider) IN ('gemini','google-gemini','gemini-openai') AND model.model_type @> '[\"image_edit\"]'::jsonb ORDER BY - CASE WHEN lower(b.invocation_name) LIKE '%gemini%image%' THEN 0 ELSE 1 END, + CASE + WHEN lower(b.invocation_name) = 'gemini-3.1-flash-image' THEN 0 + WHEN lower(b.invocation_name) LIKE '%gemini%image%' + AND lower(b.invocation_name) NOT LIKE '%preview%' THEN 1 + WHEN lower(b.invocation_name) LIKE '%gemini%image%' THEN 2 + ELSE 3 + END, platform.priority, model.created_at LIMIT 1;") fi