mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
结构化提示词
This commit is contained in:
parent
e309dcdeab
commit
e6ca234c0b
1 changed files with 4 additions and 4 deletions
|
|
@ -41,10 +41,10 @@ def append_devices_to_prompt(conn):
|
||||||
|
|
||||||
# 构建更清晰的设备清单提示
|
# 构建更清晰的设备清单提示
|
||||||
prompt = f"""
|
prompt = f"""
|
||||||
[Home Assistant智能设备清单]
|
[Home Assistant智能设备清单]
|
||||||
当你需要控制Home Assistant设备时,必须使用下面列出的确切entity_id,不能自己编造!
|
当你需要控制Home Assistant设备时,必须使用下面列出的确切entity_id,不能自己编造!
|
||||||
{deviceStr}
|
{deviceStr}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
conn.prompt += prompt
|
conn.prompt += prompt
|
||||||
# 更新提示词
|
# 更新提示词
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue