mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-04-29 02:31:48 +00:00
API: Add auth enforcement to draft list
This didn't have an API key gate. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
2
main.py
2
main.py
@@ -101,7 +101,7 @@ async def get_current_model():
|
|||||||
|
|
||||||
return model_card
|
return model_card
|
||||||
|
|
||||||
@app.get("/v1/model/draft/list")
|
@app.get("/v1/model/draft/list", dependencies=[Depends(check_api_key)])
|
||||||
async def list_draft_models():
|
async def list_draft_models():
|
||||||
model_config = unwrap(config.get("model"), {})
|
model_config = unwrap(config.get("model"), {})
|
||||||
draft_config = unwrap(model_config.get("draft"), {})
|
draft_config = unwrap(model_config.get("draft"), {})
|
||||||
|
|||||||
Reference in New Issue
Block a user