Files
2026-02-03 01:03:29 +08:00

60 lines
2.0 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# config.py
MATRIX_SERVER = "https://person.bnicetome.top"
USERNAME = "bots1"
PASSWORD = "bots1@bots1"
# 房间配置
ROOM_IDS = [
"!jTyjRTQNpAQaHGEjer:person.bnicetome.top", # 调试房间(未加密)
"!QDamBNNgTvbmFNXEFo:person.bnicetome.top", # 用户使用房间(未加密)
]
# 默认房间ID向后兼容
ROOM_ID = ROOM_IDS[0]
# E2EE配置
STORE_PATH = "store" # 存储密钥和会话信息的目录
DEVICE_ID = "BOTDEVICE2" # 设备ID
DEVICE_NAME = "MatrixBot" # 设备名称
# xAI API配置
XAI_API_KEY = (
"xai-Irz5BaEdnraGMHeFmIuTWx85srNRX5rrmXiRofaroFHrXh4dWGynC0B6hhwhUeU70Is5rSow1lHiSSVu"
)
XAI_MODEL_DIYNAME = "马斯克的X平台的AI(GROK新起之秀有免费额度推荐使用)"
XAI_BASE_URL = "https://api.x.ai/v1"
XAI_DAILY_LIMIT = 25 # 每天多少条
# OpenRouter API配置
OPENROUTER_API_KEY = (
"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"
)
OPENROUTER_API_URL = "https://openrouter.ai/api/v1/chat/completions"
# AI模型配置
OPENROUTER_MODELS = {
# "qwen-7b": {
# "model": "qwen/qwen-2-7b-instruct:free",
# "name": "通义千问2-7B(阿里巴巴基础免费版,适合问日常简单问题)",
# "daily_limit": -1 # 无限制
# },
"qwen-72b": {
"model": "qwen/qwen-2.5-72b-instruct",
"name": "通义千问2.5-72B(阿里巴巴升级版付费模型,适合一些复杂问题,写作,文案)",
"daily_limit": 50 # 每天多少条
},
"chatgpt-4o": {
"model": "openai/chatgpt-4o-latest",
"name": "OPENAI ChatGPT-4o最新版(世界公认最强大AI知识最丰富目前最强的超大模型专业性问题和更正确的回答)",
"daily_limit": 20 # 每天多少条
}
}
# 默认模型(用于向后兼容)
OPENROUTER_MODEL = OPENROUTER_MODELS["qwen-72b"]["model"]
# AI对话配置
AI_CHAT_TIMEOUT_MINUTES = 15 # AI对话闲置超时时间分钟
AI_RESPONSE_TIMEOUT_MINUTES = 5 # AI响应超时时间分钟