d8bfb81c4d
- 移除 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)
30 lines
548 B
YAML
Executable File
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"
|