hermes - 💡(How to fix) Fix [Bug]: Tools array missing from API calls to custom Ollama endpoint

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Additional Logs / Traceback (optional)

Root Cause

Root Cause Analysis (optional)

Code Example

Report     https://paste.rs/7c4eU
 agent.log  https://paste.rs/i5s51

---
RAW_BUFFERClick to expand / collapse

Bug Description

Environment:

  • macOS (fresh install)
  • Ollama 0.24.0
  • Model: qwen3.6:27b
  • Hermes: latest
  • Provider: custom endpoint (http://127.0.0.1:11434/v1)

Issue: Tools are configured and enabled in hermes tools, but the tools array is completely absent from API calls captured via mitmproxy. Model therefore cannot call any tools and hallucinates tool output.

Verified via mitmproxy that tools array is missing from /v1/chat/completions requests.

Tool calling works correctly when calling Ollama directly via curl with tools array included.

Steps to Reproduce

Steps to reproduce:

  1. Fresh macOS install
  2. Install Ollama via brew: brew install ollama
  3. Pull model: ollama pull qwen3.6:27b
  4. Install Hermes via one-liner: curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
  5. During setup select "Custom endpoint (enter URL manually)"
  6. Set base URL to http://127.0.0.1:11434/v1
  7. Select "OpenAI compatible" and "Chat completions"
  8. Enable all tools via: hermes tools
  9. Launch Hermes: hermes -tui
  10. Ask Hermes to read a local file e.g. "Read me ~/.hermes/SOUL.md"

Expected: Hermes executes a file read tool call and returns file contents.

Actual: Hermes either hallucinates file contents or hangs with no response. No tool calls are executed.

Verified via mitmproxy that the tools array is completely absent from /v1/chat/completions requests sent to Ollama, despite tools being enabled in configuration.

Curl test confirms Ollama and the model handle tool calling correctly when tools array is included in the request directly.

Expected Behavior

Should have called its tools

Actual Behavior

Doesn't call its tools

Affected Component

Tools (terminal, file ops, web, code execution, etc.)

Messaging Platform (if gateway-related)

No response

Debug Report

Report     https://paste.rs/7c4eU
 agent.log  https://paste.rs/i5s51

Operating System

MacOS

Python Version

No response

Hermes Version

No response

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING