(docs) swager - add embeddings tag

This commit is contained in:
ishaan-jaff 2023-12-20 06:29:36 +05:30
parent 9548334e2f
commit aa78415894

View file

@ -1045,8 +1045,8 @@ async def chat_completion(request: Request, model: Optional[str] = None, user_ap
detail=error_msg
)
@router.post("/v1/embeddings", dependencies=[Depends(user_api_key_auth)], response_class=ORJSONResponse)
@router.post("/embeddings", dependencies=[Depends(user_api_key_auth)], response_class=ORJSONResponse)
@router.post("/v1/embeddings", dependencies=[Depends(user_api_key_auth)], response_class=ORJSONResponse, tags=["embeddings"])
@router.post("/embeddings", dependencies=[Depends(user_api_key_auth)], response_class=ORJSONResponse, tags=["embeddings"])
async def embeddings(request: Request, user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth), background_tasks: BackgroundTasks = BackgroundTasks()):
global proxy_logging_obj
try: