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