mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix(proxy_server.py): make completion call handle "v1" in endpoint url
This commit is contained in:
parent
735e68154d
commit
666623fcf3
2 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ def model_list():
|
|||
object="list",
|
||||
)
|
||||
|
||||
@app.post("/completions")
|
||||
@app.post("/{version}/completions")
|
||||
async def completion(request: Request):
|
||||
data = await request.json()
|
||||
print_verbose(f"data passed in: {data}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue