From b87c6213ae0bda41360b7c1bab1a4fa414c64f49 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Mon, 6 Nov 2023 05:45:45 -0800 Subject: [PATCH] Remove obsolete endpoint --- extensions/openai/script.py | 1 - 1 file changed, 1 deletion(-) diff --git a/extensions/openai/script.py b/extensions/openai/script.py index 20fc94ed..ec145e05 100644 --- a/extensions/openai/script.py +++ b/extensions/openai/script.py @@ -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