v0.5.7
记忆系统接入关键词,重新启动自主发言功能
This commit is contained in:
@@ -40,6 +40,7 @@ class BotConfig:
|
||||
llm_normal_minor: Dict[str, str] = field(default_factory=lambda: {})
|
||||
embedding: Dict[str, str] = field(default_factory=lambda: {})
|
||||
vlm: Dict[str, str] = field(default_factory=lambda: {})
|
||||
rerank: Dict[str, str] = field(default_factory=lambda: {})
|
||||
|
||||
# 主题提取配置
|
||||
topic_extract: str = 'snownlp' # 只支持jieba,snownlp,llm
|
||||
@@ -136,6 +137,9 @@ class BotConfig:
|
||||
if "embedding" in model_config:
|
||||
config.embedding = model_config["embedding"]
|
||||
|
||||
if "rerank" in model_config:
|
||||
config.rerank = model_config["rerank"]
|
||||
|
||||
if 'topic' in toml_dict:
|
||||
topic_config=toml_dict['topic']
|
||||
if 'topic_extract' in topic_config:
|
||||
|
||||
Reference in New Issue
Block a user