32 lines
578 B
YAML
32 lines
578 B
YAML
|
|
# 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.stability.ai/v1"
|
||
|
|
api_key: ""
|
||
|
|
model: "stable-diffusion-xl"
|
||
|
|
width: 1024
|
||
|
|
height: 1024
|
||
|
|
num_images: 1
|
||
|
|
steps: 30
|
||
|
|
cfg_scale: 7.0
|