paint-brush
如何使用 Python 中的 OpenAI 助手构建代理 - 第 1 部分:对话式经过@jeanmaried
1,551 讀數
1,551 讀數

如何使用 Python 中的 OpenAI 助手构建代理 - 第 1 部分:对话式

经过 Jean-Marie Dalmasso12m2024/02/09
Read on Terminal Reader

太長; 讀書

现在,我们运行 while 循环来检查完成状态,同时处理一些错误情况。 Assistant API 的实际计费有点模糊,因此为了安全起见,我选择在 2 分钟后取消运行。 即使 OpenAI 在 10 分钟后取消运行时也会出现过期状态。如果跑步时间超过 2 分钟,那么您可能就遇到了问题。
featured image - 如何使用 Python 中的 OpenAI 助手构建代理 - 第 1 部分:对话式
Jean-Marie Dalmasso HackerNoon profile picture
Jean-Marie Dalmasso

Jean-Marie Dalmasso

@jeanmaried

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

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

About Author

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

標籤

Languages

这篇文章刊登在...

Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite