forked from phoenix/litellm-mirror
build(litellm_server/main.py): accomodate forward slash in azure url
This commit is contained in:
parent
9eb53acd8e
commit
6fdca38442
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ async def embedding(request: Request):
|
||||||
|
|
||||||
@router.post("/v1/chat/completions")
|
@router.post("/v1/chat/completions")
|
||||||
@router.post("/chat/completions")
|
@router.post("/chat/completions")
|
||||||
@router.post("/openai/deployments/{model}/chat/completions") # azure compatible endpoint
|
@router.post("/openai/deployments/{model:path}/chat/completions") # azure compatible endpoint
|
||||||
async def chat_completion(request: Request, model: Optional[str] = None):
|
async def chat_completion(request: Request, model: Optional[str] = None):
|
||||||
global llm_model_list
|
global llm_model_list
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue