(fix) proxy: /embeddings

This commit is contained in:
ishaan-jaff 2023-11-23 21:16:35 -08:00
parent 9185d57f6d
commit 7ccfbde6fd

View file

@ -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
response = await llm_router.aembedding(**data)
else:
response = litellm.aembedding(**data)
response = await litellm.aembedding(**data)
return response
except Exception as e:
traceback.print_exc()