Remove obsolete endpoint
This commit is contained in:
parent
fcc9114b58
commit
b87c6213ae
1 changed files with 0 additions and 1 deletions
|
@ -69,7 +69,6 @@ async def options_route():
|
||||||
|
|
||||||
|
|
||||||
@app.post('/v1/completions', response_model=CompletionResponse)
|
@app.post('/v1/completions', response_model=CompletionResponse)
|
||||||
@app.post('/v1/generate', response_model=CompletionResponse)
|
|
||||||
async def openai_completions(request: Request, request_data: CompletionRequest):
|
async def openai_completions(request: Request, request_data: CompletionRequest):
|
||||||
path = request.url.path
|
path = request.url.path
|
||||||
is_legacy = "/generate" in path
|
is_legacy = "/generate" in path
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue