Skip to content

fix(agent): add _ra() prefix to _pool_may_recover_from_rate_limit call - #29210

Closed
ygd58 wants to merge 1 commit into
NousResearch:mainfrom
ygd58:fix/conversation-loop-rate-limit-nameerror
Closed

fix(agent): add _ra() prefix to _pool_may_recover_from_rate_limit call#29210
ygd58 wants to merge 1 commit into
NousResearch:mainfrom
ygd58:fix/conversation-loop-rate-limit-nameerror

Conversation

@ygd58

@ygd58 ygd58 commented May 20, 2026

Copy link
Copy Markdown
Contributor

Problem

conversation_loop.py uses _ra() lazy import wrapper for all run_agent symbols, but line 2320 called _pool_may_recover_from_rate_limit() as a bare name — causing NameError when a 429 rate limit triggers with a fallback model configured.

Fix

One-line fix: add _ra(). prefix, consistent with all other run_agent symbol references in this file.

Fixes #29202

conversation_loop.py uses _ra() lazy import wrapper for all run_agent
symbols, but line 2320 called _pool_may_recover_from_rate_limit() as
a bare name — causing NameError when a 429 rate limit triggers with
a fallback model configured (issue NousResearch#29202).

One-line fix: add _ra(). prefix, consistent with all other run_agent
symbol references in this file.

Fixes NousResearch#29202
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NameError: _pool_may_recover_from_rate_limit is not defined — missing _ra() prefix in conversation_loop.py

1 participant