Description
In run_agent.py line 5522, _build_api_kwargs() calls:
fast_mode=self.request_overrides.get("speed") == "fast",
This crashes with 'NoneType' object has no attribute 'get' when self.request_overrides is None.
Root Cause
Although __init__ initializes self.request_overrides = dict(request_overrides or {}), certain code paths may set it to None, leaving the .get() call unprotected.
Fix
Change line 5522 from:
fast_mode=self.request_overrides.get("speed") == "fast",
to:
fast_mode=(self.request_overrides or {}).get("speed") == "fast",
Affected Version
v0.8.0
Logs
ERROR root: API call failed after 3 retries. 'NoneType' object has no attribute 'get' | provider=minimax-cn model=MiniMax-M2.7
Description
In
run_agent.pyline 5522,_build_api_kwargs()calls:This crashes with
'NoneType' object has no attribute 'get'whenself.request_overridesisNone.Root Cause
Although
__init__initializesself.request_overrides = dict(request_overrides or {}), certain code paths may set it toNone, leaving the.get()call unprotected.Fix
Change line 5522 from:
to:
Affected Version
v0.8.0
Logs