-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
57 lines (50 loc) · 1.38 KB
/
config.py
File metadata and controls
57 lines (50 loc) · 1.38 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
"""配置模块"""
import r
# 机器人配置
APPID = r.appid
SECRET = r.secret
# API配置
WEATHER_API_TOKEN = r.weather_api_token
API_APP_ID = r.api_app_id
API_APP_SECRET = r.api_app_secret
BAIDU_API_KEY = r.baidu_api_key
TJIT_KEY = r.tjit_key
# 服务器配置
MC_SERVERS = r.mc_servers
MC_MCSRVSTAT_SERVERS = r.mc_mcsrvstat_servers
MC_RCON_PASSWORD = r.mc_rcon_password
MC_SERVER = r.mc_server
MC_RCON_PORT = int(r.mc_rcon_port)
# 飞书配置
FEISHU_APP_ID = "cli_a8f1d48265fc500e"
FEISHU_APP_SECRET = "u2NfRSgPlrI4KUhba3389eyj3LSa4aGR"
# AI模型配置字典 - 支持不同模型使用不同的API设置
MODEL_CONFIGS = {
"clawdbot": {
"api_key": r.clawdbot_api_key,
"base_url": r.clawdbot_url
},
"auto": {
"api_key": r.ecust_api_key,
"base_url": r.ecust_url
},
"MiniMax-M2.5": {
"api_key": r.ecust_api_key,
"base_url": r.ecust_url
}
# 可以继续添加其他模型的配置
# "gpt-4": {
# "api_key": r.openai_api_key,
# "base_url": "https://api.openai.com/v1/"
# },
# "claude-3": {
# "api_key": r.anthropic_api_key,
# "base_url": "https://api.anthropic.com/v1/"
# }
}
# 三角洲行动API配置
DELTAFORCE_API_TOKEN = r.deltaforce_api_token
CLASS_API_KEY = r.class_api_token
# AI功能开关
AI_GROUP_ENABLED = r.ai_group_enabled
AI_DIRECT_ENABLED = r.ai_direct_enabled