From 050ff36bd62a906c8d7315958ca86677df6fc9a7 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 7 Nov 2023 21:09:47 -0800 Subject: [PATCH] Revert "Add a comment to /v1/models" This reverts commit 38b07493a0d250afdd93a145aeebf36e81973b74. --- extensions/openai/script.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/extensions/openai/script.py b/extensions/openai/script.py index d7af0372..4f8bb0d2 100644 --- a/extensions/openai/script.py +++ b/extensions/openai/script.py @@ -116,9 +116,6 @@ async def openai_chat_completions(request: Request, request_data: ChatCompletion @app.get("/v1/models") @app.get("/v1/models/{model}") async def handle_models(request: Request): - ''' - Default OpenAI endpoint; useless. You are probably looking for /v1/internal/model. - ''' path = request.url.path is_list = request.url.path.split('?')[0].split('#')[0] == '/v1/models'