mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-30 05:13:59 +08:00
fix:
1.修改提示词与说话人注入,减少模型每次回答都带着说话人信息
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user