Skip to content

fix: handle NoneType request_overrides in fast_mode check - #7350

Merged
teknium1 merged 1 commit into
NousResearch:mainfrom
0xbyt4:fix/nonetype-request-overrides
Apr 10, 2026
Merged

fix: handle NoneType request_overrides in fast_mode check#7350
teknium1 merged 1 commit into
NousResearch:mainfrom
0xbyt4:fix/nonetype-request-overrides

Conversation

@0xbyt4

@0xbyt4 0xbyt4 commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • self.request_overrides can be None when request_overrides is not passed to AIAgent, causing AttributeError: 'NoneType' object has no attribute 'get' at the fast_mode parameter in _build_anthropic_api_kwargs.
  • Fix: use (self.request_overrides or {}).get("speed") to safely handle None.

Test plan

  • Verified on gateway with request_overrides=None — no more crash
  • Verified on CLI with request_overrides set — fast_mode still works correctly

@teknium1
teknium1 merged commit 0bea603 into NousResearch:main Apr 10, 2026
5 of 6 checks passed
Tommyeds pushed a commit to Tommyeds/hermes-agent that referenced this pull request Apr 12, 2026
ARJ999 pushed a commit to ARJ999/hermes-agent that referenced this pull request Apr 19, 2026
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
waefrebeorn pushed a commit to waefrebeorn/slermes that referenced this pull request Jul 2, 2026
skappafrost pushed a commit to skappafrost/hermes-agent that referenced this pull request Aug 15, 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