mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-14 15:57:27 +00:00
API: Re-add depends endpoints
Mistakenly removed API key authentication for the models endpoints in testing. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
4
main.py
4
main.py
@@ -47,8 +47,8 @@ app.add_middleware(
|
||||
)
|
||||
|
||||
# Model list endpoint
|
||||
@app.get("/v1/models")
|
||||
@app.get("/v1/model/list")
|
||||
@app.get("/v1/models", dependencies=[Depends(check_api_key)])
|
||||
@app.get("/v1/model/list", dependencies=[Depends(check_api_key)])
|
||||
async def list_models():
|
||||
model_config = config.get("model", {})
|
||||
if "model_dir" in model_config:
|
||||
|
||||
Reference in New Issue
Block a user