mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-04-29 02:31:48 +00:00
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:
4
main.py
4
main.py
@@ -136,10 +136,6 @@ async def list_models():
|
|||||||
"/v1/model",
|
"/v1/model",
|
||||||
dependencies=[Depends(check_api_key), Depends(_check_model_container)],
|
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():
|
async def get_current_model():
|
||||||
"""Returns the currently loaded model."""
|
"""Returns the currently loaded model."""
|
||||||
model_name = MODEL_CONTAINER.get_model_path().name
|
model_name = MODEL_CONTAINER.get_model_path().name
|
||||||
|
|||||||
Reference in New Issue
Block a user