Ironclad / rivet

The open-source visual AI programming environment and TypeScript library
https://rivet.ironcladapp.com
MIT License
2.55k stars 226 forks source link

Retry OpenAI API 408 timeout #344

Closed loui7 closed 5 months ago

loui7 commented 5 months ago

Have been getting this error intermittently when my graph runs:

Graph xxx/xxx (xxx) failed to process due to errors in nodes: xxx (xxx): Error: Graph Response xxx (xxx) failed to process due to errors in nodes: xxx (xxx): Error: Error processing ChatNode: OpenAIError: 408 {"error":{"code":"Timeout","message":"The operation was timeout."}}

From googling, can only find mentions of 408 errors from people using Azure OpenAI deployments, which might explain why other people haven't bumped into this. But yeah handling it in the same way as a rate limiting error (just retrying) makes sense to me.

abrenneke commented 5 months ago

@all-contributors please add @loui7 for code

allcontributors[bot] commented 5 months ago

@abrenneke

I've put up a pull request to add @loui7! :tada: