mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-23 02:24:18 +00:00
(fix) proxy: /embeddings
This commit is contained in:
@@ -625,8 +625,8 @@ async def embeddings(request: Request):
|
||||
router_model_names = [m["model_name"] for m in llm_model_list] if llm_model_list is not None else []
|
||||
if llm_router is not None and data["model"] in router_model_names: # model in router model list
|
||||
response = await llm_router.aembedding(**data)
|
||||
else:
|
||||
response = litellm.aembedding(**data)
|
||||
else:
|
||||
response = await litellm.aembedding(**data)
|
||||
return response
|
||||
except Exception as e:
|
||||
traceback.print_exc()
|
||||
|
||||
Reference in New Issue
Block a user