File size: 1,187 Bytes
8abd45f d321ba9 9536ebc d321ba9 8abd45f d321ba9 8abd45f d321ba9 8abd45f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
thinking_services:
- id: 1
name: "${THINKING_SERVICE_NAME}" # 从环境变量获取服务名称
mode: "standard" # 默认值为 standard
model: "${THINKING_SERVICE_MODEL}" # 从环境变量获取模型名称
base_url: "${THINKING_SERVICE_BASE_URL}" # 从环境变量获取基础URL
api_path: "/v1/chat/completions"
api_key: "${THINKING_SERVICE_API_KEY}" # 从环境变量获取API密钥
timeout: 600
weight: 100
proxy: "" # 可选代理设置
reasoning_effort: high
reasoning_format: parsed
temperature: 0.8
force_stop_deep_thinking: false
# API通道配置
channels:
"1":
name: "${CHANNEL_NAME}" # 从环境变量获取通道名称
base_url: "${CHANNEL_BASE_URL}" # 从环境变量获取通道基础URL
api_path: "/v1/chat/completions"
timeout: 600
proxy: ""
# 全局配置
global:
log:
level: error
format: json
output: console
file_path: ./logs/deepai.log
debug:
enabled: true
print_request: true
print_response: true
max_content_length: 1000
server:
port: 8888
host: 0.0.0.0
read_timeout: 600
write_timeout: 600
idle_timeout: 600 |