From a11478df70410682baf973d61ab3110baacb3375 Mon Sep 17 00:00:00 2001 From: o1key <951565127@qq.com> Date: Sat, 9 May 2026 12:05:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20GPT=20Image=20=E6=8C=89=E9=87=8F?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E6=98=A0=E5=B0=84=E4=B8=BA=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E7=9A=84=20API=20=E6=A8=A1=E5=9E=8B=E5=90=8D=20gpt-image-2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- clients/gpt_image_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/gpt_image_client.py b/clients/gpt_image_client.py index eb32291..6a69005 100644 --- a/clients/gpt_image_client.py +++ b/clients/gpt_image_client.py @@ -33,6 +33,7 @@ _ENDPOINT_EDITS = "/v1/images/edits/" # ── 模型名映射(UI 显示名 → API 实际参数名)───────────────────────────────── _MODEL_NAME_MAP = { + "gpt-image-2-按量": "gpt-image-2", "gpt-image-2-次卡": "gpt-image-2-special", }