-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor retry logic into call_llm method
Incorporated feedback to refactor the retry logic from the `catch_and_convert_errors` context manager into a new `call_llm` method within the `Spice` class. This method handles the retry logic and is now used in place of the context manager in relevant parts of the code. This approach provides a cleaner and more appropriate solution for implementing retries. Updated the `WrappedOpenAIClient` and `WrappedAnthropicClient` classes to remove retry logic from the `catch_and_convert_errors` method.
- Loading branch information
mentatai
committed
Jul 14, 2024
1 parent
8680b69
commit 20c68f6
Showing
2 changed files
with
54 additions
and
57 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