Hacker News new | past | comments | ask | show | jobs | submit login

I was mixed about putting it in the base package but you can get the same behavior with the tenacity package.



Errors are so common with these endpoints, not having retry out of the box just makes it harder to hack on which I think is against the spirit?


On the other hand, automatic retires can be suprising, especially when they don't completely understand the returned error and retry on errors they shouldn't.

I just wasted a couple hours the other week due to langchainjs defaulting to retrying errors which were ultimately caused by timeouts and would never complete.


Yeah, I understand. Maybe it would be good to add a comment on it in the README, since most people will hit this problem.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: