hermes - 💡(How to fix) Fix vision_analyze and browser_vision ignore auxiliary.vision — route images to main model

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

The error indicates the image is being sent to the main model (DeepSeek), which does not support image inputs.

Fix Action

Workaround

Direct OpenAI API call via Python with GPT-4o-mini works fine — same image, same API key, just routed directly instead of through auxiliary.vision.

Code Example

hermes config set auxiliary.vision.provider openai
   hermes config set auxiliary.vision.model gpt-4o-mini

---

unknown variant `image_url`, expected `text`

---

auxiliary:
    vision:
      provider: openai
      model: gpt-4o-mini
RAW_BUFFERClick to expand / collapse

Bug Description

vision_analyze and browser_vision tools fail with unknown variant image_url, expected text even when auxiliary.vision is explicitly configured to point to a vision-capable model (OpenAI GPT-4o-mini).

The tools appear to route images to the main model (e.g. DeepSeek, which only accepts text messages) instead of using the configured auxiliary.vision provider/model.

Steps to Reproduce

  1. Configure a main model that does NOT support images (e.g. DeepSeek V4)
  2. Set up a vision-capable auxiliary model:
    hermes config set auxiliary.vision.provider openai
    hermes config set auxiliary.vision.model gpt-4o-mini
  3. Ensure OPENAI_API_KEY is set in .env
  4. Restart the gateway (hermes gateway restart)
  5. Send an image via Telegram DM
  6. Call vision_analyze(image_url=...) or open image in browser then browser_vision()

Expected Behavior

The image analysis request should be routed to the configured auxiliary.vision model (GPT-4o-mini), which supports image_url messages.

Actual Behavior

Both tools return HTTP 400:

unknown variant `image_url`, expected `text`

The error indicates the image is being sent to the main model (DeepSeek), which does not support image inputs.

Workaround

Direct OpenAI API call via Python with GPT-4o-mini works fine — same image, same API key, just routed directly instead of through auxiliary.vision.

Environment

  • Hermes version: latest (May 2026)
  • OS: Linux (Raspbian Trixie, Raspberry Pi 5, arm64)
  • Main model: deepseek-v4-pro via DeepSeek provider
  • Auxiliary vision config:
    auxiliary:
      vision:
        provider: openai
        model: gpt-4o-mini
  • OPENAI_API_KEY valid (confirmed by direct GPT-4o-mini call)
  • vision toolset enabled

Additional Context

After gateway restart, vision_analyze disappeared from available tools — only browser_vision remained (fails same way).

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

hermes - 💡(How to fix) Fix vision_analyze and browser_vision ignore auxiliary.vision — route images to main model