How to Build an Agent With an OpenAI Assistant in Python - Part 1: Conversationalby@jeanmaried
1,108 reads
1,108 reads

How to Build an Agent With an OpenAI Assistant in Python - Part 1: Conversational

by Jean-Marie Dalmasso12mFebruary 9th, 2024
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow
EN

Too Long; Didn't Read

We now run a while loop to check for a completed status while handling a few error scenarios. The actual billing of the Assistant API is a bit murky, so to be on the safe side, I opted to cancel my runs after 2 minutes. Even though there is an expired status for when OpenAI cancels runs after 10 minutes. If a run takes more than 2 minutes, you probably have a problem anyway.
featured image - How to Build an Agent With an OpenAI Assistant in Python - Part 1: Conversational
Jean-Marie Dalmasso HackerNoon profile picture
Jean-Marie Dalmasso

Jean-Marie Dalmasso

@jeanmaried

Co-Founder @ Tuler AI | Building AI Solutions | Software Engeneering Tips

Share Your Thoughts

About Author

Jean-Marie Dalmasso HackerNoon profile picture
Jean-Marie Dalmasso@jeanmaried
Co-Founder @ Tuler AI | Building AI Solutions | Software Engeneering Tips

TOPICS

Languages

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
L O A D I N G
. . . comments & more!