mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
get_openai_client_cache_key
This commit is contained in:
parent
40418c7bd8
commit
65083ca8da
4 changed files with 199 additions and 10 deletions
|
@ -263,10 +263,11 @@ class BaseAzureLLM(BaseOpenAILLM):
|
|||
client_initialization_params=client_initialization_params,
|
||||
client_type="azure",
|
||||
)
|
||||
if cached_client and isinstance(
|
||||
cached_client, (AzureOpenAI, AsyncAzureOpenAI)
|
||||
):
|
||||
return cached_client
|
||||
if cached_client:
|
||||
if isinstance(cached_client, AzureOpenAI) or isinstance(
|
||||
cached_client, AsyncAzureOpenAI
|
||||
):
|
||||
return cached_client
|
||||
|
||||
azure_client_params = self.initialize_azure_sdk_client(
|
||||
litellm_params=litellm_params or {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue