This commit is contained in:
parent
5446358163
commit
e21959140f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user