mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
fix: 全新安装第一次启动时,设置的智能体提示词不生效
This commit is contained in:
parent
d1b7cb6a36
commit
2e51614c42
1 changed files with 5 additions and 0 deletions
|
|
@ -269,6 +269,11 @@ class ConnectionHandler:
|
|||
self.config["selected_module"]["Intent"] = private_config[
|
||||
"selected_module"
|
||||
]["Intent"]
|
||||
if private_config.get("Prompt", None) is not None:
|
||||
self.config["Prompt"] = private_config["Prompt"]
|
||||
self.config["selected_module"]["Prompt"] = private_config[
|
||||
"selected_module"
|
||||
]["Prompt"]
|
||||
try:
|
||||
modules = initialize_modules(
|
||||
self.logger,
|
||||
|
|
|
|||
Loading…
Reference in a new issue