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',