Spaces:
Sleeping
Sleeping
Commit History
-
Harden GAIA agent: provider fallback, rate-limit pacing, context trimming
Scored 45% (9/20) on the official scoring API, up from a baseline that could not complete a run at all. All changes stay within the existing single-file CodeAgent architecture; no framework or tooling was swapped. Model access - Pin the model id explicitly instead of relying on the smolagents default, which changes between releases and made Space rebuilds non-reproducible. - Support any OpenAI-compatible endpoint via GAIA_BASE_URL/GAIA_API_KEY, since HF's free monthly credits return 402 on every call once depleted, failing all 20 questions at once. - GAIA_MODEL_ID accepts a comma-separated chain; exhausting one model's daily token quota switches to the next rather than ending the run. Rate limits - Pace requests below the provider ceiling (GAIA_RPM) instead of discovering it through 429s. - Honour the provider's own retry hint; a blind doubling backoff was routinely shorter than the interval the server asked for. - Disable smolagents' internal retryer. Its 3 attempts at 6…ef2c544