fix: 修复上次提交中的错误和删除测试代码

This commit is contained in:
bmy
2024-08-01 23:30:37 +08:00
parent d0b02a66e6
commit 55f5b13d8c
2 changed files with 12 additions and 11 deletions

View File

@@ -436,7 +436,7 @@ class LLM:
输入:灯光闪烁 3 次同时蜂鸣器也叫 3 次
输出:[{"index":0,"action":"beep_light_counts","time": 3}]
'''
self.prompt += '''请根据上面的示例,解析该任务文本,并返回相应的 JSON 字段。确保 JSON 中包含了键 index action 和 time 以及相应的值'''
self.prompt += '''请根据上面的示例,解析该任务文本,并返回相应的 JSON 字段。确保 JSON 中包含了键 index action 和 time 以及相应的值。不要附带其他的解释和注释,只需要 JSON 字段。'''
self.messages = []
self.resp = None
worker = threading.Thread(target=self.reset, daemon=True)