mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
(feat) set custom_llm_provider for embedding hidden params
This commit is contained in:
parent
f85b64b85c
commit
7f37d7e44f
1 changed files with 2 additions and 0 deletions
|
@ -2512,6 +2512,8 @@ def embedding(
|
||||||
else:
|
else:
|
||||||
args = locals()
|
args = locals()
|
||||||
raise ValueError(f"No valid embedding model args passed in - {args}")
|
raise ValueError(f"No valid embedding model args passed in - {args}")
|
||||||
|
if response is not None:
|
||||||
|
response._hidden_params["custom_llm_provider"] = custom_llm_provider
|
||||||
return response
|
return response
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
## LOGGING
|
## LOGGING
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue