diff --git a/extensions/openai/script.py b/extensions/openai/script.py index 4f8bb0d2..d7af0372 100644 --- a/extensions/openai/script.py +++ b/extensions/openai/script.py @@ -116,6 +116,9 @@ 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'