fix(proxy_server.py): make completion call handle "v1" in endpoint url

This commit is contained in:
Krrish Dholakia 2023-10-06 09:17:02 -07:00
parent 296f7f5b76
commit e162a9855b
2 changed files with 1 additions and 1 deletions

View file

@ -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}")