Merge pull request #3437 from msabramo/add-engines-model-chat-completions-endpoint

Add `/engines/{model}/chat/completions` endpoint
This commit is contained in:
Krish Dholakia 2024-05-08 14:30:39 -07:00 committed by GitHub
commit 91bb7cd261
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 39 additions and 1 deletions

View file

@ -3499,6 +3499,11 @@ def model_list(
dependencies=[Depends(user_api_key_auth)],
tags=["chat/completions"],
)
@router.post(
"/engines/{model:path}/chat/completions",
dependencies=[Depends(user_api_key_auth)],
tags=["chat/completions"],
)
@router.post(
"/openai/deployments/{model:path}/chat/completions",
dependencies=[Depends(user_api_key_auth)],