This commit is contained in:
2024-11-14 22:15:41 +01:00
parent a981209399
commit ecc2e1f107
+3 -2
View File
@@ -330,14 +330,15 @@ async def hammer_assitant_chat(message):
instructions=f"Pisze do Ciebie {assistant_data[0]} udziel mu wszelkiej pomocy",
)
done = False
await message.channel.send(f"Echo: {message.content}")
while not done:
if run.status == "completed":
messsages = await OPENAICLIENT.beta.threads.messages.list(
thread_id=assistant_data[3].id
)
logger.info(messsages)
await message.channel.send(messsages)
done = True
else:
logger.info(run.status)
asyncio.sleep(5)
await message.channel.send(f"Echo: {message.content}")
asyncio.sleep(5)