-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathenv_example.txt
More file actions
86 lines (69 loc) · 3.42 KB
/
env_example.txt
File metadata and controls
86 lines (69 loc) · 3.42 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
# LLM API配置示例文件
# 复制此文件为 .env 并填入您的实际API密钥
# =============================================================================
# OpenAI配置
# =============================================================================
# OpenAI API密钥 (必需)
OPENAI_API_KEY=sk-your-openai-api-key-here
# OpenAI基础URL (可选,默认为官方API)
# OPENAI_BASE_URL=https://api.openai.com/v1
# =============================================================================
# Anthropic (Claude) 配置
# =============================================================================
# Anthropic API密钥 (必需)
ANTHROPIC_API_KEY=sk-ant-your-anthropic-api-key-here
# Anthropic基础URL (可选,默认为官方API)
# ANTHROPIC_BASE_URL=https://api.anthropic.com
# =============================================================================
# DeepSeek配置
# =============================================================================
# DeepSeek API密钥 (必需)
DEEPSEEK_API_KEY=sk-your-deepseek-api-key-here
# DeepSeek基础URL (可选,默认为官方API)
# DEEPSEEK_BASE_URL=https://api.deepseek.com
# =============================================================================
# Llama配置
# =============================================================================
# Llama API密钥 (必需)
LLAMA_API_KEY=your-llama-api-key-here
# Llama基础URL (可选,默认为官方API)
# LLAMA_BASE_URL=https://api.llama-api.com
# =============================================================================
# Qwen配置
# =============================================================================
# Qwen API密钥 (必需)
QWEN_API_KEY=your-qwen-api-key-here
# Qwen基础URL (可选,默认为官方API)
# QWEN_BASE_URL=https://api.qwen.ai
# =============================================================================
# 自定义API配置
# =============================================================================
# 自定义API URL (可选)
# CUSTOM_API_URL=https://your-custom-api-endpoint.com/v1/chat/completions
# 自定义API密钥 (可选)
# CUSTOM_API_KEY=your-custom-api-key-here
# =============================================================================
# 通用配置
# =============================================================================
# 默认模型名称
MODEL_NAME=gpt-4o-mini
# 温度参数 (0.0-2.0)
TEMPERATURE=0.7
# 最大令牌数
MAX_TOKENS=4096
# =============================================================================
# 使用说明
# =============================================================================
# 1. 至少配置一个LLM提供商的API密钥
# 2. 支持的提供商优先级:OpenAI > Anthropic > DeepSeek > Llama > Qwen > Custom
# 3. 如果指定模型名称,系统会自动路由到相应的提供商
# 4. 如果未指定模型或模型不可用,系统会按优先级使用可用的提供商
# 5. 自定义API需要支持OpenAI兼容的聊天完成接口格式
# =============================================================================
# 模型名称示例
# =============================================================================
# OpenAI: gpt-4, gpt-4o, gpt-4o-mini, gpt-3.5-turbo
# Anthropic: claude-3-opus-20240229, claude-3-sonnet-20240229, claude-3-haiku-20240307
# DeepSeek: deepseek-chat, deepseek-coder, deepseek-reasoner, deepseek-r1
# Llama: llama-2-7b-chat, llama-2-13b-chat, llama-2-70b-chat
# Qwen: qwen-turbo, qwen-plus, qwen-max