mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
Merge pull request #1248 from danikhan632/main
updated oobabooga to new api and support for embeddings
This commit is contained in:
commit
5c3a61d62f
2 changed files with 86 additions and 59 deletions
|
@ -2314,6 +2314,16 @@ def embedding(
|
|||
optional_params=optional_params,
|
||||
model_response=EmbeddingResponse(),
|
||||
)
|
||||
elif custom_llm_provider == "oobabooga":
|
||||
response = oobabooga.embedding(
|
||||
model=model,
|
||||
input=input,
|
||||
encoding=encoding,
|
||||
api_base=api_base,
|
||||
logging_obj=logging,
|
||||
optional_params=optional_params,
|
||||
model_response= EmbeddingResponse()
|
||||
)
|
||||
elif custom_llm_provider == "ollama":
|
||||
if aembedding == True:
|
||||
response = ollama.ollama_aembeddings(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue