mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 16:17:57 +01:00
Remove obsolete endpoint
This commit is contained in:
parent
fcc9114b58
commit
b87c6213ae
@ -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…
Reference in New Issue
Block a user