mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
(feat) proxy server add route ngines/{model:path}/completions
This commit is contained in:
parent
700fcfa5fb
commit
bc61c81cc6
1 changed files with 1 additions and 0 deletions
|
@ -506,6 +506,7 @@ def model_list():
|
|||
|
||||
@router.post("/v1/completions")
|
||||
@router.post("/completions")
|
||||
@router.post("/engines/{model:path}/completions")
|
||||
async def completion(request: Request):
|
||||
data = await request.json()
|
||||
return litellm_completion(data=data, type="completion", user_model=user_model, user_temperature=user_temperature,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue