API: Remove unnecessary endpoint

This used to be a shim for ooba, but it's no longer necessary.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri 2024-03-04 23:02:12 -05:00 committed by Brian Dashore
parent d2c6ae2d35
commit 165cc6fc2d

View file

@ -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