fix(models): keep Nano Banana sync compatible with project types

This commit is contained in:
134 2026-10-12 16:57:16 +08:00
parent 3750e89ed1
commit 850f664fb1

View File

@ -8,7 +8,7 @@ import {
} from "../lib/ai/vip98k-models"; } from "../lib/ai/vip98k-models";
const MODEL_ID = "nano-banana-2.1"; const MODEL_ID = "nano-banana-2.1";
dotenv.config({ path: ".env.local", quiet: true }); dotenv.config({ path: ".env.local" });
async function main() { async function main() {
if (!process.env.POSTGRES_URL) throw new Error("POSTGRES_URL is required"); if (!process.env.POSTGRES_URL) throw new Error("POSTGRES_URL is required");
@ -77,7 +77,7 @@ async function main() {
providerId: provider.id, providerId: provider.id,
apply: process.argv.includes("--apply"), apply: process.argv.includes("--apply"),
exists: existing.length === 1, exists: existing.length === 1,
sizes: capabilities.supportedImageSizes, sizes: preset.capabilities.supportedImageSizes,
supportsReferenceImages: preset.supportsVision, supportsReferenceImages: preset.supportsVision,
invocationPath: invocation.path, invocationPath: invocation.path,
}; };