Skip to content

[Bug]: Could not set up Azure Async client when azure client already exists. #10318

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bipulsimkhada-cr opened this issue Apr 25, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@bipulsimkhada-cr
Copy link

What happened?

There already exists azure client and when i make acompletion call, I am getting "Azure client is not an instance of AsyncAzureOpenAI". This acompletion call is pulling AzureOpenAI client from cache. Not able to create AsyncAzureOpenAI.

self.get_azure_openai_client is passing _is_async=True while get_openai_client_cache_key expects is_async.

Image

Relevant log output

Are you a ML Ops Team?

No

What LiteLLM version are you on ?

1.67.0

Twitter / LinkedIn details

No response

@bipulsimkhada-cr bipulsimkhada-cr added the bug Something isn't working label Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant