How to Build an Agent With an OpenAI Assistant in Python - Part 1: Conversational
2024-2-10 05:41:54 Author: hackernoon.com(查看原文) 阅读量:8 收藏

Hackernoon logo

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

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


@jeanmaried

Jean-Marie Dalmasso


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


Receive Stories from @jeanmaried

react to story with heart

RELATED STORIES

Article Thumbnail

Article Thumbnail

Article Thumbnail

Article Thumbnail

L O A D I N G
. . . comments & more!


文章来源: https://hackernoon.com/how-to-build-an-agent-with-an-openai-assistant-in-python-part-1-conversational?source=rss
如有侵权请联系:admin#unsafe.sh