[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-05-25 02:08:29 +00:00
commit 92eccc3627

View file

@ -2675,13 +2675,9 @@ async def delete_cached_model(
llama_backend = get_llama_cpp_backend()
loaded_id = (llama_backend.model_identifier or "").lower()
wants = (
loaded_id == repo_id.lower()
or loaded_id.startswith(repo_id.lower())
)
wants = loaded_id == repo_id.lower() or loaded_id.startswith(repo_id.lower())
if wants and (
llama_backend.is_loaded
or getattr(llama_backend, "is_active", False)
llama_backend.is_loaded or getattr(llama_backend, "is_active", False)
):
raise HTTPException(
status_code = 400,