-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
61 lines (52 loc) · 2.14 KB
/
.env.example
File metadata and controls
61 lines (52 loc) · 2.14 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
# ====================================
# MeshBot 环境变量配置模板
# ====================================
# 使用说明:
# 1. 复制此文件为 .env: cp .env.example .env
# 2. 填写实际的 API 密钥和配置
# 3. .env 文件不会被提交到 Git(已在 .gitignore 中)
# ====================================
# OpenRouter 配置
# ====================================
# OpenRouter API 密钥(必填)
# 获取地址: https://openrouter.ai/keys
OPENROUTER_API_KEY=your-openrouter-api-key-here
# OpenRouter 默认模型(可选)
# 如果不设置,将使用 google/gemini-2.0-flash-exp:free
# 免费模型列表: https://openrouter.ai/models?q=(free)&order=top-weekly
# 示例值:
# - google/gemini-2.0-flash-exp:free
# - mistralai/mistral-small-3.1:free
# - meta-llama/llama-4-maverick:free
OPENROUTER_MODEL=google/gemini-2.0-flash-exp:free
# OpenRouter 网站 URL(可选,用于在 OpenRouter 排行榜展示)
OPENROUTER_SITE_URL=https://github.com/your-username/MeshBot
# ====================================
# OpenAI 配置(如使用 OpenAI 平台)
# ====================================
OPENAI_API_KEY=your-openai-api-key-here
OPENAI_MODEL=gpt-3.5-turbo
# ====================================
# DeepSeek 配置(如使用 DeepSeek 平台)
# ====================================
DEEPSEEK_API_KEY=your-deepseek-api-key-here
DEEPSEEK_MODEL=deepseek-chat
# ====================================
# Ollama 配置(本地 AI)
# ====================================
# Ollama 服务地址(默认: http://127.0.0.1:11434)
OLLAMA_BASE_URL=http://127.0.0.1:11434
# Ollama 默认模型
OLLAMA_MODEL=qwen2.5:7b
# ====================================
# WebSocket 配置(如使用 WebSocket 集成)
# ====================================
# WebSocket 服务地址(用于 AstrBot 等集成)
WEBSOCKET_URI=ws://localhost:9238
# ====================================
# 系统配置
# ====================================
# 日志级别: DEBUG | INFO | WARNING | ERROR
LOG_LEVEL=INFO
# Mesh 响应最大长度(字符数,建议 ≤ 200 以适应 LoRa 限制)
MAX_RESPONSE_LENGTH=200