@danhachuel/thunderbolt 0.7.63 → 0.7.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -426,11 +426,11 @@ def route_json_request(
|
|
|
426
426
|
record_provider_attempt(record)
|
|
427
427
|
if exc.retryable or exc.category in {"credential", "endpoint_or_model"}:
|
|
428
428
|
set_provider_cooldown(card, exc.retry_after or cooldown or DEFAULT_COOLDOWN_SECONDS)
|
|
429
|
-
if not exc.retryable:
|
|
429
|
+
if not exc.retryable and pool != POOL_LLM:
|
|
430
430
|
raise ProviderRoutingError(str(exc), attempts=attempts) from exc
|
|
431
431
|
if exc.retry_after:
|
|
432
432
|
time.sleep(min(3600.0, exc.retry_after))
|
|
433
|
-
elif cooldown > 0 and len(attempts) < maximum:
|
|
433
|
+
elif exc.retryable and cooldown > 0 and len(attempts) < maximum:
|
|
434
434
|
time.sleep(min(cooldown, 5.0))
|
|
435
435
|
except requests.RequestException as exc:
|
|
436
436
|
classified = classify_request_exception(exc)
|
package/package.json
CHANGED