API: Remove model check dependency for lora list
This isn't needed for listing stuff. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
0a144688c6
commit
1fd38c61de
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
|
@ -188,8 +188,8 @@ async def unload_model():
|
|||
model_container = None
|
||||
|
||||
# Lora list endpoint
|
||||
@app.get("/v1/loras", dependencies=[Depends(check_api_key), Depends(_check_model_container)])
|
||||
@app.get("/v1/lora/list", dependencies=[Depends(check_api_key), Depends(_check_model_container)])
|
||||
@app.get("/v1/loras", dependencies=[Depends(check_api_key)])
|
||||
@app.get("/v1/lora/list", dependencies=[Depends(check_api_key)])
|
||||
async def get_all_loras():
|
||||
model_config = unwrap(config.get("model"), {})
|
||||
lora_config = unwrap(model_config.get("lora"), {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue