test(test_embeddings.py): fix test

This commit is contained in:
Krrish Dholakia 2024-08-28 07:50:44 -07:00
parent 3df1186d72
commit 3cec00939e
2 changed files with 30 additions and 18 deletions

View file

@ -3366,7 +3366,10 @@ def embedding(
api_base = api_base or litellm.api_base or get_secret("AZURE_API_BASE")
api_version = (
api_version or litellm.api_version or get_secret("AZURE_API_VERSION")
api_version
or litellm.api_version
or get_secret("AZURE_API_VERSION")
or litellm.AZURE_DEFAULT_API_VERSION
)
azure_ad_token = optional_params.pop("azure_ad_token", None) or get_secret(