(fix) embedding() using get_llm_provider

This commit is contained in:
ishaan-jaff 2023-10-20 15:00:08 -07:00
parent 9884bbd196
commit 0b0564167c

View file

@ -1497,7 +1497,7 @@ def embedding(
Raises:
- exception_type: If an exception occurs during the API call.
"""
model, custom_llm_provider, dynamic_api_key, api_base = get_llm_provider(model, custom_llm_provider)
model, custom_llm_provider, dynamic_api_key, api_base = get_llm_provider(model=model, custom_llm_provider=custom_llm_provider, api_base=api_base)
try:
response = None
logging = litellm_logging_obj