Closed sudoskys closed 2 months ago
The request.py
file in the llmkira/openai
module has been updated to enhance the retry mechanism for making requests. The changes include importing the wait_exponential
function from the tenacity
library and modifying the retry
decorator to include an exponential backoff strategy, providing a more efficient and reliable way to handle retries with a waiting period that increases exponentially between attempts.
Files | Change Summary |
---|---|
llmkira/.../request.py |
Added wait_exponential to the import statement, and updated the retry decorator to include wait_exponential(multiplier=1, min=4, max=10) . |
In code we trust, with retries so grand,
An exponential wait, perfectly planned,
Requests now smoother, errors abate,
A better flow, our fate we create.
Each line refined, resilience through,
In every retry, a promise anew.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
…ration
Summary by CodeRabbit