-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Openai error handling for ratelimit, timeout and try again errors(fix #…
…1255) (#1361) * Adds error handling for openai's rate limit error in llms/openai module and its tests - Adds test for rate limit error handling in the llms/openai module - Adds error handling for rate limit error in the llms/openai module - Refactors code in llms/openai module to be readable and modular * Adds error handling for openai's timeout error in llms/openai module and its test - Adds test for timeout error handling in chat_completion in llms/openai module - Adds error handling for openai's timeout error in chat_completion in llms/openai module * Adds error handling for openai's try again error in llms/openai module and its test - Adds test for openai's try again error handling in chat_completion in llms/openai module - Adds error handling for openai's try again error in chat_completion in llms/openai module * Refactors llms/openai module and its tests to return error after retry attempts are exausted * Increases wait time for retry of chat_completion in llms/openai module * Removes unused import
- Loading branch information
1 parent
ea2a0b6
commit 240d05d
Showing
2 changed files
with
105 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters