mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
(fix) proxy: /embeddings
This commit is contained in:
parent
9185d57f6d
commit
7ccfbde6fd
1 changed files with 2 additions and 2 deletions
|
@ -626,7 +626,7 @@ async def embeddings(request: Request):
|
||||||
if llm_router is not None and data["model"] in router_model_names: # model in router model list
|
if llm_router is not None and data["model"] in router_model_names: # model in router model list
|
||||||
response = await llm_router.aembedding(**data)
|
response = await llm_router.aembedding(**data)
|
||||||
else:
|
else:
|
||||||
response = litellm.aembedding(**data)
|
response = await litellm.aembedding(**data)
|
||||||
return response
|
return response
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue