openclaw - ✅(Solved) Fix [Bug]: OpenClaw infer/web UI fails with ollama/qwen2.5:0.5b, but direct Ollama /api/chat works [1 pull requests, 1 comments, 1 participants]

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…
GitHub stats
openclaw/openclaw#67949Fetched 2026-04-17 08:28:51
View on GitHub
Comments
1
Participants
1
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
labeled ×2commented ×1cross-referenced ×1referenced ×1

connecting 2 local machines with openclaw and ollama and using a small model. This is a test scenario.

Error Message

400 {"error":"\"qwen2.5:0.5b\" does not support thinking"}

Root Cause

connecting 2 local machines with openclaw and ollama and using a small model. This is a test scenario.

Fix Action

Fixed

PR fix notes

PR #67958: fix: omit think parameter for Ollama models without thinking support

Description (problem / solution / changelog)

Summary

OpenClaw was sending a think parameter to Ollama for all models when thinkingLevel was set, but some smaller models like qwen2.5:0.5b do not support thinking mode, causing a 400 error.

Root Cause

The createConfiguredOllamaCompatStreamWrapper function was unconditionally adding a think parameter when ctx.thinkingLevel was set, but models without thinking capabilities reject this parameter entirely.

Changes

  • Import isReasoningModelHeuristic to detect models that support thinking
  • Check supportsThinking before applying the think wrapper
  • Only send think parameter for reasoning models (r1, reasoning, think patterns)
  • Updated tests for reasoning and non-reasoning models

Fixes openclaw/openclaw#67949

Changed files

  • extensions/ollama/index.test.ts (modified, +118/-8)
  • extensions/ollama/src/provider-models.ts (modified, +1/-1)
  • extensions/ollama/src/stream.ts (modified, +11/-3)
  • src/agents/model-auth-env-vars.test.ts (added, +51/-0)
  • src/agents/model-auth-env-vars.ts (modified, +12/-1)
RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

connecting 2 local machines with openclaw and ollama and using a small model. This is a test scenario.

Steps to reproduce

OpenClaw 2026.4.12 on 192.168.1.101, Ollama on 192.168.1.102:11434.

openclaw infer model run --model ollama/qwen2.5:0.5b --prompt "Reply with exactly: hello" --json fails with: 400 {"error":"\"qwen2.5:0.5b\" does not support thinking"}

But direct Ollama calls to /api/chat with the same model work, including with "think": false.

Expected behavior

The agent does not respond as this is the first time connecting these 2 devices together.

Actual behavior

no response in the openclaw gateway ui.

OpenClaw version

OpenClaw 2026.4.12

Operating system

Linux 24:04

Install method

No response

Model

ollama/qwen2.5:0.5b but changing to another model

Provider / routing chain

openclaw local 192,168.1.101 to ollama 192.168.1.102

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The issue might be resolved by checking the compatibility of the model "qwen2.5:0.5b" with the "thinking" feature in OpenClaw.

Guidance

  • Verify that the model "qwen2.5:0.5b" supports the "thinking" feature by checking the model's documentation or configuration.
  • Check the OpenClaw configuration to ensure that the "thinking" feature is enabled for the model "qwen2.5:0.5b".
  • Test the model with a different prompt that does not require the "thinking" feature to see if the issue is specific to this feature.
  • Investigate why direct Ollama calls to /api/chat with the same model work, including with "think": false, to identify potential differences in configuration or implementation.

Example

No code snippet is provided as the issue does not contain sufficient information to create a relevant example.

Notes

The issue lacks detailed information about the model configuration, OpenClaw setup, and logs, which makes it difficult to provide a more specific solution. Further investigation and debugging are required to identify the root cause of the issue.

Recommendation

Apply workaround: Try using a different model that is known to support the "thinking" feature or disable the "thinking" feature for the current model to see if it resolves the issue. This is because the error message specifically mentions that the model does not support thinking, suggesting a potential compatibility issue.

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…

FAQ

Expected behavior

The agent does not respond as this is the first time connecting these 2 devices together.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING

openclaw - ✅(Solved) Fix [Bug]: OpenClaw infer/web UI fails with ollama/qwen2.5:0.5b, but direct Ollama /api/chat works [1 pull requests, 1 comments, 1 participants]