From 0b1caf7280aba1b9c8b9c7372675d2088dbbf32d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Tue, 22 Sep 2026 12:12:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=9B=BE=E7=89=87=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E4=B8=AD=E8=AF=AF=E5=AF=BC=E6=80=A7=E7=9A=84=E9=A6=96?= =?UTF-8?q?=E9=80=89=E6=A8=A1=E5=9E=8B=E5=8F=98=E9=87=8F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - generate-anthro-cat-illustrations 的 preferredImageModel 重命名为 imageModel,并同步 requestImagePayload 与试运行请求体引用 - generate-template-samples 的 preferredImageModel 重命名为 imageModel,并同步 requestImagePayload 与试运行请求体引用 --- .../scripts/generate-anthro-cat-illustrations.mjs | 6 +++--- .../scripts/generate-template-samples.mjs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.codex/skills/gpt-image-2-apimart/scripts/generate-anthro-cat-illustrations.mjs b/.codex/skills/gpt-image-2-apimart/scripts/generate-anthro-cat-illustrations.mjs index c38a99436..5c2bd1aae 100644 --- a/.codex/skills/gpt-image-2-apimart/scripts/generate-anthro-cat-illustrations.mjs +++ b/.codex/skills/gpt-image-2-apimart/scripts/generate-anthro-cat-illustrations.mjs @@ -11,7 +11,7 @@ const defaultOutDir = path.join(repoRoot, 'public', 'anthro-cat-illustrations'); const defaultTimeoutMs = 1000000; // GPT Image 2.5 生成任务只接受 concrete provider model;业务模型名 `gpt-image-2.5` // 由 server-rs 在任务边界解析,脚本直连 provider 时必须自己给出 concrete key。 -const preferredImageModel = 'gpt-image-2.5-flare-c'; +const imageModel = 'gpt-image-2.5-flare-c'; const prompts = [ { @@ -258,7 +258,7 @@ async function fetchJson(url, options, timeoutMs) { } async function requestImagePayload(env, entry) { - const model = preferredImageModel; + const model = imageModel; const requestBody = { model, prompt: buildPrompt(entry), @@ -364,7 +364,7 @@ if (dryRun) { id: entry.id, title: entry.title, body: { - model: preferredImageModel, + model: imageModel, prompt: buildPrompt(entry), n: 1, size: '1024x1024', diff --git a/.codex/skills/gpt-image-2-apimart/scripts/generate-template-samples.mjs b/.codex/skills/gpt-image-2-apimart/scripts/generate-template-samples.mjs index 28363fcba..5b23bc70e 100644 --- a/.codex/skills/gpt-image-2-apimart/scripts/generate-template-samples.mjs +++ b/.codex/skills/gpt-image-2-apimart/scripts/generate-template-samples.mjs @@ -20,7 +20,7 @@ const defaultOutDir = path.join( const defaultTimeoutMs = 1000000; // GPT Image 2.5 生成任务只接受 concrete provider model;业务模型名 `gpt-image-2.5` // 由 server-rs 在任务边界解析,脚本直连 provider 时必须自己给出 concrete key。 -const preferredImageModel = 'gpt-image-2.5-flare-c'; +const imageModel = 'gpt-image-2.5-flare-c'; const args = new Map(); for (let index = 2; index < process.argv.length; index += 1) { @@ -228,7 +228,7 @@ async function fetchJson(url, options, timeoutMs) { } async function requestImagePayload(env, template) { - const model = preferredImageModel; + const model = imageModel; const requestBody = { model, prompt: buildPrompt(template), @@ -338,7 +338,7 @@ if (dryRun) { id: template.id, title: template.title, body: { - model: preferredImageModel, + model: imageModel, prompt: buildPrompt(template), n: 1, size: '1024x1024',