daveebbelaar / python-whatsapp-bot

Build AI WhatsApp Bots with Pure Python
https://www.datalumina.com
MIT License
520 stars 334 forks source link

Programmatically define `assistant_id` instead of hard coding its value in `run_assistant` function #1

Open MrJarnould opened 7 months ago

MrJarnould commented 7 months ago

The code in assistants_quickstart.py will fail to run unless you programmatically define the assistant_id.

i.e. line 94 goes from this: assistant = client.beta.assistants.retrieve("asst_7Wx2nQwoPWSf710jrdWTDlfE")

to this: assistant = client.beta.assistants.retrieve(assistant.id)