[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
08cb60c6e1
commit
69c614e2e8
1 changed files with 1 additions and 3 deletions
|
|
@ -717,9 +717,7 @@ def test_cascade_retries_next_quant_after_load_failure():
|
|||
the retry loop terminates, and the attempt cap bounds total loads."""
|
||||
src = _read("features/chat/api/chat-adapter.ts")
|
||||
auto_load = src.split("async function autoLoadOnDeviceModel", 1)[1]
|
||||
assert (
|
||||
"while (localCandidate && loadAttempts < MAX_AUTO_LOAD_ATTEMPTS)" in auto_load
|
||||
)
|
||||
assert "while (localCandidate && loadAttempts < MAX_AUTO_LOAD_ATTEMPTS)" in auto_load
|
||||
# The cascade catch records the failed quant, unlike the old generic flag.
|
||||
local_loop = auto_load.split(
|
||||
"while (localCandidate && loadAttempts < MAX_AUTO_LOAD_ATTEMPTS)", 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue