-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
128 lines (113 loc) · 8.58 KB
/
Copy path.env.example
File metadata and controls
128 lines (113 loc) · 8.58 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# ============================================================
# LLM Provider 与模型配置
# ============================================================
#
# 配置方式:填写 LLM_BASE_URL + LLM_API_KEY + LLM_MODEL 即可。
# 系统会根据 baseURL 自动推断 provider,根据 model 自动匹配画像。
# 只有在使用代理/网关时才需要显式设置 LLM_PROVIDER。
#
# 模型画像(FoundationModelProfile)目前支持 9 个:
# kimi-k2.6, kimi-code, minimax-m2.7, minimax-m3,
# deepseek-v4, mimo-v2.5-pro, qwen3.7-max, glm-5.1,
# generic-openai-compatible
#
# 可选 Provider ID:openai_compatible, minimax_cn,
# kimi_platform_cn, kimi_code_cn
#
# ┌────────────────────┬─────────────────────────────┬──────────────────────────┐
# │ 模型 │ 推荐 .env 配置 │ 画像特点 │
# ├────────────────────┼─────────────────────────────┼──────────────────────────┤
# │ DeepSeek V4 │ LLM_BASE_URL=https://api. │ 1M ctx, thinking, │
# │ │ deepseek.com/v1 │ cache telemetry, │
# │ │ LLM_API_KEY=sk-... │ long_context 压缩 │
# │ │ LLM_MODEL=deepseek-v4 │ │
# ├────────────────────┼─────────────────────────────┼──────────────────────────┤
# │ Kimi K2.6 │ LLM_PROVIDER=kimi_platform_ │ 262K ctx, thinking, │
# │ (Moonshot) │ cn │ streaming, reasoning │
# │ │ MOONSHOT_API_KEY=sk-... │ replay │
# │ │ LLM_MODEL=kimi-k2.6 │ │
# ├────────────────────┼─────────────────────────────┼──────────────────────────┤
# │ Kimi Code │ LLM_BASE_URL=https://api. │ 262K ctx, streaming, │
# │ (编程专用) │ kimi.com/coding/v1 │ tool_call + reasoning │
# │ │ LLM_API_KEY=sk-... │ 占位 │
# │ │ LLM_MODEL=kimi-for-coding │ │
# ├────────────────────┼─────────────────────────────┼──────────────────────────┤
# │ MiniMax M3 │ LLM_PROVIDER=minimax_cn │ 1M ctx, reasoning_ │
# │ │ MINIMAX_CN_API_KEY=sk-... │ details, multimodal │
# │ │ LLM_MODEL=MiniMax-M3 │ tools, streaming │
# ├────────────────────┼─────────────────────────────┼──────────────────────────┤
# │ MiniMax M2.7 │ LLM_PROVIDER=minimax_cn │ 200K ctx, 基础工具 │
# │ │ MINIMAX_CN_API_KEY=sk-... │ │
# │ │ LLM_MODEL=MiniMax-M2.7 │ │
# ├────────────────────┼─────────────────────────────┼──────────────────────────┤
# │ MiMo V2.5 Pro │ LLM_BASE_URL=<你的兼容端点> │ 1M ctx, thinking, │
# │ │ LLM_API_KEY=sk-... │ max_completion_tokens │
# │ │ LLM_MODEL=mimo-v2.5-pro │ │
# ├────────────────────┼─────────────────────────────┼──────────────────────────┤
# │ Qwen 3.7 Max │ LLM_BASE_URL=<你的兼容端点> │ 1M ctx, thinking, │
# │ │ LLM_API_KEY=sk-... │ Anthropic protocol │
# │ │ LLM_MODEL=qwen3.7-max │ fallback │
# ├────────────────────┼─────────────────────────────┼──────────────────────────┤
# │ GLM-5.1 │ LLM_BASE_URL=<你的兼容端点> │ 200K ctx, thinking, │
# │ │ LLM_API_KEY=sk-... │ tool_stream 参数 │
# │ │ LLM_MODEL=glm-5.1 │ │
# ├────────────────────┼─────────────────────────────┼──────────────────────────┤
# │ 自定义/其他 │ LLM_BASE_URL=<任意兼容端点> │ 使用 generic 画像, │
# │ │ LLM_API_KEY=sk-... │ 保守默认(80K ctx) │
# └────────────────────┴─────────────────────────────┴──────────────────────────┘
#
# 优先级规则:
# LLM_API_KEY > provider 专用 key(如 MOONSHOT_API_KEY)
# LLM_BASE_URL > provider 默认 baseURL
# LLM_MODEL > provider 默认模型
#
# 当 LLM_BASE_URL 匹配某个已知 provider 的默认端点时,
# 自动推断 provider(如 https://api.moonshot.cn/v1 → kimi_platform_cn)。
# -------------------------------------------------------------------------
# 必填:API 认证
# -------------------------------------------------------------------------
# 通用 API 密钥(所有 provider 都支持,优先级最高)
LLM_API_KEY=your-api-key-here
# Provider 专用 key(当 LLM_API_KEY 未设置时作为 fallback)
# MOONSHOT_API_KEY=sk-moonshot-...
# MINIMAX_CN_API_KEY=sk-minimax-...
# KIMI_CODE_API_KEY=sk-kimi-...
# -------------------------------------------------------------------------
# 必填:接入端点与模型
# -------------------------------------------------------------------------
# API 基础 URL(覆盖 provider 默认值,也可触发自动推断)
# Kimi Code CN: https://api.kimi.com/coding/v1
# Kimi Platform CN: https://api.moonshot.cn/v1
# MiniMax CN: https://api.minimaxi.com/v1
# DeepSeek: https://api.deepseek.com/v1
LLM_BASE_URL=https://api.moonshot.cn/v1
# 模型名称(覆盖 provider 默认值)
# Kimi Code CN 默认: kimi-for-coding
# Kimi Platform CN 默认: kimi-k2.6
# MiniMax CN 默认: MiniMax-M2.7
LLM_MODEL=kimi-k2.6
# 可选:显式指定 provider(baseURL 不匹配已知端点时使用)
# LLM_PROVIDER=kimi_platform_cn
# 可选:显式指定模型画像(跳过 provider+model 自动匹配)
# LLM_MODEL_PROFILE=kimi-k2.6
# -------------------------------------------------------------------------
# 可选:运行时策略覆盖
# -------------------------------------------------------------------------
# 上下文总预算(覆盖画像默认值,单位 token)
# LLM_CONTEXT_BUDGET=200000
# 最大输出 token(覆盖画像默认值)
# LLM_MAX_OUTPUT_TOKENS=32768
# Thinking 模式(覆盖画像默认值)
# LLM_THINKING=enabled # enabled | adaptive | disabled
# 协议选择(覆盖画像默认值,仅当该协议已实现时有效)
# LLM_PROTOCOL=openai-chat-completions
# -------------------------------------------------------------------------
# 可选:日志与压缩配置(不配置则使用画像默认值)
# -------------------------------------------------------------------------
LOG_LEVEL=info
# 上下文压缩阈值覆盖(单位 token)
# COMPRESS_TOOL_OUTPUT=4000
# COMPRESS_DECAY_THRESHOLD=5
# COMPRESS_DECAY_PREVIEW=200
# COMPRESS_MAX_CONTEXT=180000
# COMPACT_KEEP_RECENT=6