'补充模板未覆盖人群', '2' => '付费用户', '3' => '派单用户' ]; const PRODUCT_TYPE = [ 'WEEK' => '周卡', 'MONTH' => '月卡', 'QUARTER' => '季卡', 'YEAR' => '年卡' ]; const VOLC_PIC_MODELS = ['doubao-seedream-5-0-260128', 'doubao-seedream-5-0-lite-260128', 'doubao-seedream-4-5-251128']; const GPT_IMAGE2_MODELS = ['gpt-image-2']; const NANO_BANANA_MODELS = ['NanoBanana2', 'NanoBananaPro', 'GptImage2']; const GPT_TEXT_MODELS = ['gpt-5.4', 'gpt-5.6-terra', 'gpt-5.6-sol', 'gpt-5.6-luna', 'gpt-6-astra']; const GEMINI_TEXT_MODELS = [ 'gemini-3-pro-preview', 'gemini-3-flash-preview', 'gemini-3.1-pro-preview', 'gemini-3.1-flash-image-preview-t', 'gemini-3.6-flash' ]; // 百度 AI 网关 GLM 文生文模型(前端入参名) const BAIDU_GLM_TEXT_MODELS = ['baidu-glm-5.2', 'baidu-glm-5.3']; // 百度 AI 网关 GLM 模型映射:前端名 -> 网关真实模型名 const BAIDU_GLM_MODEL_MAP = [ 'baidu-glm-5.2' => 'glm-5.2', 'baidu-glm-5.3' => 'glm-5.3', ]; // 火山写作奖励计划接入点(使用该接入点可在第二天根据前一天使用量获取免费额度) const MODELS_MAP = [ 'doubao-seed-2-0-pro-260215' => 'ep-20260422093628-pv5vj', 'doubao-seed-2-0-lite-260215' => 'ep-20260422093559-9fsgl', 'doubao-seed-2-0-mini-260215' => 'ep-20260422093505-qkj4z', 'deepseek-v3-2-251201' => 'ep-20260422092942-7kh9p', 'doubao-seedream-4-5-251128' => 'ep-20260422092419-6lvp9', 'doubao-seedream-5-0-lite-260128' => 'ep-20260903150621-49nrm', 'doubao-seedream-5-0-pro-260628' => 'ep-20260903141837-drhcf', 'doubao-seedance-1-5-pro-251215' => 'ep-20260422091940-g4knb', ]; /** * 图片生成:分辨率档位(2k/3k/4k)与画面比例对应的尺寸映射表 * * 统一入口,所有图片生成入口均应引用本常量,禁止在业务代码中重复维护尺寸表。 */ const IMAGE_RESOLUTION_SIZE_MAP = [ '2k' => [ '1:1' => ['width' => 2048, 'height' => 2048], '4:3' => ['width' => 2304, 'height' => 1728], '3:4' => ['width' => 1728, 'height' => 2304], '16:9' => ['width' => 2848, 'height' => 1600], '9:16' => ['width' => 1600, 'height' => 2848], '3:2' => ['width' => 2496, 'height' => 1664], '2:3' => ['width' => 1664, 'height' => 2496], '21:9' => ['width' => 3136, 'height' => 1344], ], '3k' => [ '1:1' => ['width' => 3072, 'height' => 3072], '4:3' => ['width' => 3456, 'height' => 2592], '3:4' => ['width' => 2592, 'height' => 3456], '16:9' => ['width' => 3840, 'height' => 2160], '9:16' => ['width' => 2160, 'height' => 3840], '2:3' => ['width' => 2496, 'height' => 3744], '3:2' => ['width' => 3744, 'height' => 2496], '21:9' => ['width' => 3440, 'height' => 1440], ], '4k' => [ '1:1' => ['width' => 4096, 'height' => 4096], '3:4' => ['width' => 3520, 'height' => 4704], '4:3' => ['width' => 4704, 'height' => 3520], '16:9' => ['width' => 5504, 'height' => 3040], '9:16' => ['width' => 3040, 'height' => 5504], '2:3' => ['width' => 3328, 'height' => 4992], '3:2' => ['width' => 4992, 'height' => 3328], '21:9' => ['width' => 6240, 'height' => 2656], ], ]; /** * 画面比例配置(默认 2k 档尺寸) */ const IMAGE_RATIOS = self::IMAGE_RESOLUTION_SIZE_MAP['2k']; }