1.修改提示词与说话人注入,减少模型每次回答都带着说话人信息
This commit is contained in:
DaGou12138
2026-07-08 14:12:16 +08:00
parent 209fd3fbc8
commit 04c10ef225
3 changed files with 10 additions and 5 deletions
+2 -2
View File
@@ -983,7 +983,7 @@ class ConnectionHandler:
llm_responses = self.llm.response_with_functions(
self.session_id,
self.dialogue.get_llm_dialogue_with_memory(
memory_str, self.config.get("voiceprint", {})
memory_str, self.config.get("voiceprint", {}), self.current_speaker
),
functions=functions,
)
@@ -991,7 +991,7 @@ class ConnectionHandler:
llm_responses = self.llm.response(
self.session_id,
self.dialogue.get_llm_dialogue_with_memory(
memory_str, self.config.get("voiceprint", {})
memory_str, self.config.get("voiceprint", {}), self.current_speaker
),
)
except Exception as e: