mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
Add route: "/engines/{model:path}/chat/completions"
Without this, it results in: ```pytb Traceback (most recent call last): File "/Users/abramowi/Code/OpenSource/litellm/litellm/proxy/proxy_server.py", line 3836, in completion raise HTTPException( fastapi.exceptions.HTTPException: 400: {'error': 'completion: Invalid model name passed in model=gpt-3.5-turbo/chat'} ```
This commit is contained in:
parent
4ce4927c0c
commit
eb433bde86
1 changed files with 5 additions and 0 deletions
|
@ -3456,6 +3456,11 @@ def model_list(
|
||||||
dependencies=[Depends(user_api_key_auth)],
|
dependencies=[Depends(user_api_key_auth)],
|
||||||
tags=["chat/completions"],
|
tags=["chat/completions"],
|
||||||
)
|
)
|
||||||
|
@router.post(
|
||||||
|
"/engines/{model:path}/chat/completions",
|
||||||
|
dependencies=[Depends(user_api_key_auth)],
|
||||||
|
tags=["chat/completions"],
|
||||||
|
)
|
||||||
@router.post(
|
@router.post(
|
||||||
"/openai/deployments/{model:path}/chat/completions",
|
"/openai/deployments/{model:path}/chat/completions",
|
||||||
dependencies=[Depends(user_api_key_auth)],
|
dependencies=[Depends(user_api_key_auth)],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue