Skip to content

The agent that grows with you

merge: refresh upstream models, notification expiry, and desktop controls

ethernetc69ccc3bf105
diff --cc tools/fal_common.py
index c7803e4a5b9,d4f90937aa0..41601ce511a
--- a/tools/fal_common.py
+++ b/tools/fal_common.py
@@@ -26,13 -8,17 +26,18 @@@ issue #26241 for details
from __future__ import annotations
- from typing import Any, Dict, Optional, Union
+ import time
+ import uuid
+ from typing import Any, Callable, Dict, Optional, Union
from urllib.parse import urlencode
+ # A 429 whose Retry-After is longer than this is reported, not waited out inside a tool call.
+ MANAGED_FAL_RATE_LIMIT_RETRY_CAP_SECONDS = 30.0
+
def import_fal_client() -> Any:
- """Import ``fal_client`` (via ``lazy_deps`` when available); raises ImportError if unavailable.
+ """Import ``fal_client`` (via ``pm`` when available) and return
+ the module reference.
Callers cache the result on their own module global so tests can monkeypatch it.
"""