Skip to content

fix: 6 bugs in model metadata, reasoning detection, and delegate tool#2182

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-5d6932ba
Mar 20, 2026
Merged

fix: 6 bugs in model metadata, reasoning detection, and delegate tool#2182
teknium1 merged 1 commit into
mainfrom
hermes/hermes-5d6932ba

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Cherry-picked from PR #2169 by @0xbyt4 (all 6 commits, clean apply).

  1. _strip_provider_prefix: skip Ollama model:tag names (qwen:0.5b, deepseek:latest)
  2. Fuzzy match: remove reverse direction that made claude-sonnet-4 resolve to 1M instead of 200K
  3. _has_content_after_think_block: reuse _strip_think_blocks() to handle all tag variants
  4. models.dev lookup: elifif so nous provider also queries models.dev
  5. Disk cache fallback: use 5-min TTL instead of full hour
  6. Delegate build: try/finally around child construction so _last_resolved_tool_names is always restored

5641 tests passing.

Cherry-picked from PR #2169 by @0xbyt4.

1. _strip_provider_prefix: skip Ollama model:tag names (qwen:0.5b)
2. Fuzzy match: remove reverse direction that made claude-sonnet-4
   resolve to 1M instead of 200K
3. _has_content_after_think_block: reuse _strip_think_blocks() to
   handle all tag variants (thinking, reasoning, REASONING_SCRATCHPAD)
4. models.dev lookup: elif→if so nous provider also queries models.dev
5. Disk cache fallback: use 5-min TTL instead of full hour so network
   is retried soon
6. Delegate build: wrap child construction in try/finally so
   _last_resolved_tool_names is always restored on exception
@teknium1 teknium1 merged commit 5e705bc into main Mar 20, 2026
1 check passed
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
…5d6932ba

fix: 6 bugs in model metadata, reasoning detection, and delegate tool
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
…5d6932ba

fix: 6 bugs in model metadata, reasoning detection, and delegate tool
olympus-terminal pushed a commit to olympus-terminal/hermes-agent that referenced this pull request May 16, 2026
…5d6932ba

fix: 6 bugs in model metadata, reasoning detection, and delegate tool
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
…5d6932ba

fix: 6 bugs in model metadata, reasoning detection, and delegate tool
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
…5d6932ba

fix: 6 bugs in model metadata, reasoning detection, and delegate tool
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.

1 participant