mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
Add new routes for v1 versioning in proxy server
This commit is contained in:
parent
cfeaa79bea
commit
1b672dfb51
1 changed files with 4 additions and 2 deletions
|
@ -470,6 +470,7 @@ def model_list():
|
|||
)
|
||||
|
||||
|
||||
@router.post("/v1/completions")
|
||||
@router.post("/completions")
|
||||
async def completion(request: Request):
|
||||
data = await request.json()
|
||||
|
@ -478,6 +479,7 @@ async def completion(request: Request):
|
|||
user_debug=user_debug)
|
||||
|
||||
|
||||
@router.post("/v1/chat/completions")
|
||||
@router.post("/chat/completions")
|
||||
async def chat_completion(request: Request):
|
||||
data = await request.json()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue