litellm icon indicating copy to clipboard operation
litellm copied to clipboard

(fix) Unable to override max_retries for Azure and Groq (#6138)

Open ishaan-jaff opened this issue 1 year ago โ€ข 5 comments

Title

Relevant issues

Type

๐Ÿ†• New Feature ๐Ÿ› Bug Fix ๐Ÿงน Refactoring ๐Ÿ“– Documentation ๐Ÿš„ Infrastructure โœ… Test

Changes

[REQUIRED] Testing - Attach a screenshot of any new tests passing locall

If UI changes, send a screenshot/GIF of working UI fixes

ishaan-jaff avatar Oct 10 '24 10:10 ishaan-jaff

The latest updates on your projects. Learn more about Vercel for Git โ†—๏ธŽ

Name Status Preview Comments Updated (UTC)
litellm โœ… Ready (Inspect) Visit Preview ๐Ÿ’ฌ Add feedback Oct 10, 2024 10:50am

vercel[bot] avatar Oct 10 '24 10:10 vercel[bot]

Hi @magaman384 seeing this error on your PR

AzureException APIError - Completions.create() got an unexpected keyword argument 'max_retries' LiteLLM Retried: 2 times, LiteLLM Max Retries: 3

ishaan-jaff avatar Oct 10 '24 10:10 ishaan-jaff

Hi @magaman384 seeing this error on your PR

AzureException APIError - Completions.create() got an unexpected keyword argument 'max_retries' LiteLLM Retried: 2 times, LiteLLM Max Retries: 3

Hi, thanks I'll try to fix it, however I had quite hard time running all the tests locally. Is it supposed to work according the README.md? Because it seems like lot of dependencies are missing (e.g. I get errors like PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo?). Would be helpful if I could run them on my machine.

magaman384 avatar Oct 10 '24 18:10 magaman384

@ishaan-jaff Hey! With some reverse engineering I've managed to fix the failing test after all, here is a commit that fixes it: https://github.com/BerriAI/litellm/pull/6285/commits/b8c9515b1590b067cd86a9b538731dcae00fe7bd

I've also created a separate PR for that from my fork, wasn't sure if you want to just cherry-pick into this one. Probably would be easier not to cherry-pick since I've rebased the new PR and resolved all the conflicts.

magaman384 avatar Oct 17 '24 15:10 magaman384

@krrishdholakia Hey Krish, could you have a look at this bug fix https://github.com/BerriAI/litellm/pull/6285? It is an extension of this PR and is resulting in incorrect behaviour for Azure, Groq, etc. when setting retries.

kiriloman avatar Oct 23 '24 09:10 kiriloman

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Apr 22 '25 22:04 CLAassistant

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Jul 22 '25 00:07 github-actions[bot]