Files
gen2d/backend/internal/config/config.yml
T
Gmarker689 c4dc7394b1 refactor(inference): 统合 image_gen 为 GPT Image 2 异步 API,删除冗余配置
- 删除 gptimage.go,异步逻辑直接内聚到 inference.go
- ImageGenConfig 改为 GPT Image 2 参数:aspect_ratio / x_channel / poll_max_wait / poll_interval
- GenerateImages 流程:submit → poll → download,支持并行多图(spritesheet)
- 移除旧的 OpenAI 兼容同步 API 代码(callImageGenAPI / parseImageResponse 等)
- 统一 env:GEN2D_IMAGE_* 系列,移除 GEN2D_GPT_IMAGE2_* 冗余
2026-05-25 12:44:39 +08:00

32 lines
600 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://www.yuntts.com/api/v1"
api_key: ""
model: "gpt-image-2"
quality: "low"
aspect_ratio: "1:1"
x_channel: "default"
poll_max_wait: 120
poll_interval: 3