feat: 增加gpt-image-2 模型

This commit is contained in:
R524809
2026-08-17 17:28:02 +08:00
parent 9d15d8f784
commit e9d1eef07e
11 changed files with 162 additions and 17 deletions
+2 -1
View File
@@ -20,5 +20,6 @@
"@types/react-dom": "^18.3.0",
"typescript": "^5.5.3",
"wxt": "^0.19.0"
}
},
"packageManager": "pnpm@10.32.1+sha512.a706938f0e89ac1456b6563eab4edf1d1faf3368d1191fc5c59790e96dc918e4456ab2e67d613de1043d2e8c81f87303e6b40d4ffeca9df15ef1ad567348f2be"
}
+6 -1
View File
@@ -102,7 +102,7 @@ export const PLATFORM_OPTIONS = [
export type PlatformId = (typeof PLATFORM_OPTIONS)[number]['value'];
/** 生图模型(通义 DashScope):下拉可选 + 中文特点说明 */
/** 生图模型(下拉可选 + 中文特点说明;服务端按模型名路由 provider) */
export const IMAGE_MODEL_OPTIONS = [
{
value: 'qwen-image-3.0-pro',
@@ -114,6 +114,11 @@ export const IMAGE_MODEL_OPTIONS = [
label: 'wan2.7-image-pro',
desc: '异步精修,质感与细节更强,适合高质量电商大片',
},
{
value: 'gpt-image-2',
label: 'gpt-image-2',
desc: 'GPT 图像模型,构图与图内文案渲染最强,参考图高保真,单张 1-5 分钟',
},
] as const;
export const PLATFORM_SPECS: Record<string, { lang: string; ratio: string; label: string }> = {