Remove obsolete endpoint

This commit is contained in:
oobabooga 2023-11-06 05:45:45 -08:00
parent fcc9114b58
commit b87c6213ae

View File

@ -69,7 +69,6 @@ async def options_route():
@app.post('/v1/completions', response_model=CompletionResponse)
@app.post('/v1/generate', response_model=CompletionResponse)
async def openai_completions(request: Request, request_data: CompletionRequest):
path = request.url.path
is_legacy = "/generate" in path