mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-10 17:04:47 +00:00
build(litellm_server/main.py): accomodate forward slash in azure url
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user