fix test routes on litellm proxy

This commit is contained in:
Ishaan Jaff 2024-07-10 16:50:46 -07:00
parent 0cb4dabaf0
commit 265ec00d0f

View file

@ -3239,6 +3239,12 @@ async def completion(
response_class=ORJSONResponse,
tags=["embeddings"],
)
@router.post(
"/engines/{model:path}/embeddings",
dependencies=[Depends(user_api_key_auth)],
response_class=ORJSONResponse,
tags=["embeddings"],
) # azure compatible endpoint
@router.post(
"/openai/deployments/{model:path}/embeddings",
dependencies=[Depends(user_api_key_auth)],