-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.config.toml
More file actions
65 lines (56 loc) · 1.88 KB
/
Copy pathexample.config.toml
File metadata and controls
65 lines (56 loc) · 1.88 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
# QJinEra Configuration
[bot]
# Bot basic settings
name = ""
english_name = ""
admin_qq = 1234567890 # Replace with admin QQ
plugins = ["plugins.core"]
adapters = ["alicebot.adapter.cqhttp"]
# Whitelist for groups. If empty, all groups are allowed (or disallowed depending on logic).
# Recommended to keep it strict.
allowed_groups = [] # Example: [123456789]
[bot.log]
# 这里是 AliceBot 自身日志相关的配置
level = "INFO"
verbose_exception = true
[adapter.cqhttp]
# 这里是 CQHTTP 适配器的配置
adapter_type = "ws"
host = "127.0.0.1"
port = 3001
url = "/"
[llm]
# LLM API Configuration
# Support for OpenAI-compatible APIs
api_base = "https://api.openai.com/v1/"
api_key = "YOUR_OPENAI_API_KEY"
proxy = "" # HTTP proxy if needed, e.g., "http://127.0.0.1:7890"
timeout = 60.0 # API request timeout in seconds
maxtries = 3 # Number of retries on API 503 failure
# Model selection
# judge_model = "gemini-2.5-flash-lite" # Small model for interruption judgment
# chat_model = "gemini-2.5-flash" # Large model for chat generation
judge_model = "openai/gpt-4o-mini"
chat_model = "openai/gpt-4o"
[storage]
# Database and file paths
database_file = "qjinera.db"
data_dir = "data"
[log]
# 日志配置
level = "INFO"
log_dir = "logs"
[topic]
# Topic detection thresholds
topic_gap_minutes = 10
debounce_seconds = 3.0
proactive_chat_interval_minutes = 3 # 主动发言检测间隔(分钟)
[prompts]
# V4.0: Prompts 现在通过 Jinja2 模板与 UPEX (User Persona Extension) 解耦
persona_file = "prompts/personas/qjinera.ujson"
judge_system_file = "prompts/judge_system.jinja"
chat_system_file = "prompts/chat_system.jinja"
proactive_system_file = "prompts/proactive_system.jinja"
memory_consolidator_system_file = "prompts/memory_consolidator.jinja"
memory_extractor_system_file = "prompts/memory_extractor.jinja"
group_consolidator_system_file = "prompts/group_consolidator.jinja"