mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
end_prompt默认为开启
This commit is contained in:
parent
92544f89f3
commit
51ca914206
1 changed files with 1 additions and 2 deletions
|
|
@ -99,9 +99,8 @@ async def no_voice_close_connect(conn):
|
|||
conn.client_abort = False
|
||||
conn.asr_server_receive = False
|
||||
end_prompt = conn.config.get("end_prompt", {})
|
||||
if end_prompt and end_prompt.get("enable", False) is False:
|
||||
if end_prompt and end_prompt.get("enable", True) is False:
|
||||
conn.logger.bind(tag=TAG).info("结束对话,无需发送结束提示语")
|
||||
conn.asr_server_receive = True
|
||||
await conn.close()
|
||||
return
|
||||
prompt = end_prompt.get("prompt")
|
||||
|
|
|
|||
Loading…
Reference in a new issue