Files
gen2d/backend/internal/config/config.yml
T
Gmarker689 d8bfb81c4d refactor(config): 精简 image_gen 配置为 OpenAI 兼容同步 API
- 移除 yuntts 异步字段: aspect_ratio / x_channel / poll_max_wait / poll_interval
- 改用标准 OpenAI Images API 字段: width / height / quality
- 默认 base_url 改为 api.suchuang.vip/v1
- 模型默认值: gpt-image-2-token(此模型在 suchuang 上需换 gpt-image-1)
2026-05-25 13:17:57 +08:00

30 lines
548 B
YAML
Executable File

# gen2d backend configuration
# 敏感信息(api_key)请通过环境变量设置,不要直接写在文件中提交。
server:
port: 8080
mode: debug
max_file_size: 10485760 # 10MB
database:
dsn: "data/gen2d.db"
jwt:
secret: "gen2d-dev-secret"
expire: 7200
llm:
base_url: "https://api.deepseek.com/v1"
api_key: ""
model: "deepseek-v4-pro"
temperature: 0.7
max_tokens: 2048
image_gen:
base_url: "https://api.suchuang.vip/v1"
api_key: ""
model: "gpt-image-2-token"
width: 1024
height: 1024
quality: "low"