Update.
All checks were successful
Build package / Build (push) Successful in 1m29s

This commit is contained in:
retoor 2024-12-20 22:43:24 +01:00
parent 5446358163
commit e21959140f

View File

@ -148,8 +148,9 @@ class Agent:
response_messages = self.client.beta.threads.messages.list(
thread_id=self.thread.id
).data
last_message = response_messages[0]
last_message = response_messages[0].content[0].text.value
self.messages.append({"role": "assistant", "content": last_message})
print(last_message)
yield str(last_message)
async def chatp(self, message: str) -> str: