mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-04-29 10:42:03 +00:00
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:
4
main.py
4
main.py
@@ -188,8 +188,8 @@ async def unload_model():
|
|||||||
model_container = None
|
model_container = None
|
||||||
|
|
||||||
# Lora list endpoint
|
# Lora list endpoint
|
||||||
@app.get("/v1/loras", 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), Depends(_check_model_container)])
|
@app.get("/v1/lora/list", dependencies=[Depends(check_api_key)])
|
||||||
async def get_all_loras():
|
async def get_all_loras():
|
||||||
model_config = unwrap(config.get("model"), {})
|
model_config = unwrap(config.get("model"), {})
|
||||||
lora_config = unwrap(model_config.get("lora"), {})
|
lora_config = unwrap(model_config.get("lora"), {})
|
||||||
|
|||||||
Reference in New Issue
Block a user