From 35dcab442b35323c15c6793f35cf245085256636 Mon Sep 17 00:00:00 2001 From: Hua Fang Date: Mon, 27 Apr 2026 23:36:53 +0800 Subject: [PATCH] chore: update default image model to doubao-seedream-4-5-251128 Replace deprecated seedream-4.5 with doubao-seedream-4-5-251128 across: - Default model fallback in volcano_image_generation.py - env.example template - FRAMEWORK.md documentation --- backend/FRAMEWORK.md | 6 +++--- backend/app/tools/volcano_image_generation.py | 2 +- backend/env.example | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/FRAMEWORK.md b/backend/FRAMEWORK.md index e674fb0..1deff7f 100644 --- a/backend/FRAMEWORK.md +++ b/backend/FRAMEWORK.md @@ -248,7 +248,7 @@ backend/ **环境变量:** - `VOLCANO_API_KEY` - 火山引擎API密钥 - `VOLCANO_BASE_URL` - API基础URL -- `VOLCANO_IMAGE_MODEL` - 生成模型(默认:seedream-4.5) +- `VOLCANO_IMAGE_MODEL` - 生成模型(默认:doubao-seedream-4-5-251128) - `VOLCANO_EDIT_MODEL` - 编辑模型(默认:同生成模型) --- @@ -400,8 +400,8 @@ RECURSION_LIMIT=200 # 火山引擎配置 VOLCANO_API_KEY=YOUR_VOLCANO_API_KEY VOLCANO_BASE_URL=https://ark.cn-beijing.volces.com/api/v3 -VOLCANO_IMAGE_MODEL=seedream-4.5 -VOLCANO_EDIT_MODEL=seedream-4.5 +VOLCANO_IMAGE_MODEL=doubao-seedream-4-5-251128 +VOLCANO_EDIT_MODEL=doubao-seedream-4-5-251128 # 腾讯云混元生3D配置 TENCENT_AI3D_API_KEY=YOUR_TENCENT_AI3D_API_KEY diff --git a/backend/app/tools/volcano_image_generation.py b/backend/app/tools/volcano_image_generation.py index c71e2d7..7fd2b25 100644 --- a/backend/app/tools/volcano_image_generation.py +++ b/backend/app/tools/volcano_image_generation.py @@ -36,7 +36,7 @@ # 从环境变量获取配置 VOLCANO_API_KEY = os.getenv("VOLCANO_API_KEY", "").strip() VOLCANO_BASE_URL = os.getenv("VOLCANO_BASE_URL", "https://ark.cn-beijing.volces.com/api/v3").strip() -VOLCANO_IMAGE_MODEL = os.getenv("VOLCANO_IMAGE_MODEL", "seedream-4.5").strip() +VOLCANO_IMAGE_MODEL = os.getenv("VOLCANO_IMAGE_MODEL", "doubao-seedream-4-5-251128").strip() # 若编辑模型不同,可单独配置;缺省复用生成模型 VOLCANO_EDIT_MODEL = os.getenv("VOLCANO_EDIT_MODEL", VOLCANO_IMAGE_MODEL).strip() # Mock 模式配置 diff --git a/backend/env.example b/backend/env.example index 2a03031..da96c3b 100644 --- a/backend/env.example +++ b/backend/env.example @@ -27,8 +27,8 @@ RECURSION_LIMIT=200 VOLCANO_API_KEY=YOUR_VOLCANO_API_KEY_HERE VOLCANO_BASE_URL=https://ark.cn-beijing.volces.com/api/v3 # 火山引擎图片生成模型 -VOLCANO_IMAGE_MODEL=seedream-4.5 -VOLCANO_EDIT_MODEL=seedream-4.5 +VOLCANO_IMAGE_MODEL=doubao-seedream-4-5-251128 +VOLCANO_EDIT_MODEL=doubao-seedream-4-5-251128 # 火山引擎视频生成模型(使用 Seedance 1.5 Pro,支持文生视频、图生视频-首帧、首尾帧) VOLCANO_VIDEO_MODEL=doubao-seedance-1-5-pro # 火山引擎 LLM 模型(当 LLM_PROVIDER=volcano 时使用)