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:
parent
5d80a049ae
commit
99a798e117
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
|
@ -101,7 +101,7 @@ async def get_current_model():
|
|||
|
||||
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():
|
||||
model_config = unwrap(config.get("model"), {})
|
||||
draft_config = unwrap(model_config.get("draft"), {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue