Skip to content

fix: handle None request_overrides in _build_api_kwargs - #7210

Closed
leefbiant wants to merge 1 commit into
NousResearch:mainfrom
leefbiant:fix/request-overrides-npe
Closed

fix: handle None request_overrides in _build_api_kwargs#7210
leefbiant wants to merge 1 commit into
NousResearch:mainfrom
leefbiant:fix/request-overrides-npe

Conversation

@leefbiant

Copy link
Copy Markdown

When request_overrides is None, calling .get("speed") raises AttributeError. Guard with (self.request_overrides or {}).

Fixes regression from #7037 (Anthropic Fast Mode support).

@teknium1

Copy link
Copy Markdown
Contributor

Thanks for the fix, @leefbiant! This is a valid bug report.

However, the identical guard was already merged on the same day via PR #7350 (commit 0bea603510494629bdbd7c2c3397158fb33e5b91). Current main at run_agent.py:7481 already reads:

fast_mode=(self.request_overrides or {}).get("speed") == "fast",

— exactly the change proposed here. Closing as implemented on main.

This is an automated hermes-sweeper review.

@teknium1 teknium1 closed this Apr 27, 2026
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.

2 participants