build(litellm_server/main.py): accomodate forward slash in azure url

This commit is contained in:
Krrish Dholakia 2023-10-28 13:32:31 -07:00
parent 9eb53acd8e
commit 6fdca38442

View file

@ -94,7 +94,7 @@ async def embedding(request: Request):
@router.post("/v1/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):
global llm_model_list
try: