修正图片脚本中误导性的首选模型变量名
- generate-anthro-cat-illustrations 的 preferredImageModel 重命名为 imageModel,并同步 requestImagePayload 与试运行请求体引用 - generate-template-samples 的 preferredImageModel 重命名为 imageModel,并同步 requestImagePayload 与试运行请求体引用
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user