refactor: think

This commit is contained in:
莘权 马 2023-09-06 10:49:06 +08:00
parent 8f8a5e185a
commit 8695a042e9

View file

@ -59,7 +59,7 @@ class Assistant(Role):
for desc, name in skills.items():
prompt += f"If the text explicitly want you to {desc}, return `[SKILL]: {name}` brief and clear. For instance: [SKILL]: {name}\n"
prompt += 'Otherwise, return `[TALK]: {talk}` brief and clear. For instance: if {talk} is "xxxx" return [TALK]: xxxx\n\n'
prompt = f"Now the text is: {last_talk}"
prompt += f"Now the text is: {last_talk}"
logger.info(prompt)
rsp = await self._llm.aask(prompt, [])
logger.info(f"THINK: {prompt}\n, THINK RESULT: {rsp}\n")