-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
47 lines (43 loc) · 2.17 KB
/
Copy pathconfig.example.yaml
File metadata and controls
47 lines (43 loc) · 2.17 KB
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
44
45
46
47
# ===========================================================
# 三系统命理分析编排器 · API 配置示例
# 使用方式:cp config.example.yaml config.yaml 然后填入你的 API Key
# config.yaml 已在 .gitignore 中,不会被提交到仓库
# ===========================================================
# 后端类型:openai_compatible | anthropic
# openai_compatible 适配所有兼容 OpenAI Chat Completions 协议的服务,
# 换一家服务商只需要改下方 openai_compatible.base_url 和 model 即可。
backend: openai_compatible
# -----------------------------------------------------------
# OpenAI 兼容后端
# 常见服务商的 base_url 与模型名:
# OpenAI 官方: https://api.openai.com/v1 模型:gpt-4o / gpt-4o-mini
# DeepSeek: https://api.deepseek.com/v1 模型:deepseek-chat / deepseek-reasoner
# Moonshot 月之暗面:https://api.moonshot.cn/v1 模型:moonshot-v1-128k
# 智谱 AI: https://open.bigmodel.cn/api/paas/v4 模型:glm-4-plus
# SiliconFlow: https://api.siliconflow.cn/v1 模型:deepseek-ai/DeepSeek-V3
# Ollama 本地: http://localhost:11434/v1 模型:qwen2.5:32b 等
# -----------------------------------------------------------
openai_compatible:
base_url: https://api.deepseek.com/v1
api_key: sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
model: deepseek-chat
temperature: 0.7
max_tokens: 8000
timeout: 300
# -----------------------------------------------------------
# Anthropic(Claude)原生后端
# 模型 ID 参考:claude-opus-4-7 / claude-sonnet-4-6 / claude-haiku-4-5-20251001
# -----------------------------------------------------------
anthropic:
api_key: sk-ant-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
model: claude-sonnet-4-6
max_tokens: 8000
timeout: 300
# -----------------------------------------------------------
# 运行参数
# -----------------------------------------------------------
run:
# 每次运行的中间结果保存目录,下面会按时间戳建子目录
output_dir: ./runs
# 是否把每一步的完整 system / user prompt 保存下来(便于调试,默认开启)
save_prompts: true