From 165cc6fc2d351010443f26cdd0e48abb4296323f Mon Sep 17 00:00:00 2001 From: kingbri Date: Mon, 4 Mar 2024 23:02:12 -0500 Subject: [PATCH] API: Remove unnecessary endpoint This used to be a shim for ooba, but it's no longer necessary. Signed-off-by: kingbri --- main.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/main.py b/main.py index b71a4ed5..d8aa07db 100644 --- a/main.py +++ b/main.py @@ -136,10 +136,6 @@ async def list_models(): "/v1/model", dependencies=[Depends(check_api_key), Depends(_check_model_container)], ) -@app.get( - "/v1/internal/model/info", - dependencies=[Depends(check_api_key), Depends(_check_model_container)], -) async def get_current_model(): """Returns the currently loaded model.""" model_name = MODEL_CONTAINER.get_model_path().name