openclaw - 💡(How to fix) Fix [Bug]: ollama cloud models are getting loaded with wrong context limit [1 comments, 2 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#70303Fetched 2026-04-23 07:26:33
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Timeline (top)
labeled ×2commented ×1

Using 'openclaw models list --all --provider ollama' shows incorrect context limits.

Root Cause

Using 'openclaw models list --all --provider ollama' shows incorrect context limits.

RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Using 'openclaw models list --all --provider ollama' shows incorrect context limits.

Steps to reproduce

  1. openclaw models list --all --provider ollama

For example nemotron-3-super shows context as 125k, whereas using the ollama.com api it shows up as 262144

Expected behavior

The context limits shown by openclaw models list --all --provider ollama should be the same as this command. $ curl -s https://ollama.com/api/show -H "Content-Type: application/json" -d '{"name":"nemotron-3-super"}' | jq { "details": { "parent_model": "nemotron-3-super", "format": "", "family": "nemotron_h_moe", "families": null, "parameter_size": "120000000000", "quantization_level": "NVFP4" }, "model_info": { "general.architecture": "nemotron_h_moe", "general.parameter_count": 120000000000, "nemotron_h_moe.context_length": 262144, "nemotron_h_moe.embedding_length": 4096 }, "capabilities": [ "completion", "thinking", "tools" ], "modified_at": "2026-03-11T00:00:00Z" }

Actual behavior

For example nemotron-3-super shows context as 125k, whereas using the ollama.com api it shows up as 262144

OpenClaw version

2026.4.21

Operating system

openclaw:latest

Install method

docker

Model

n/a/

Provider / routing chain

n/a

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 openclaw models list command may need to be updated to correctly parse or fetch the context limits from the ollama API.

Guidance

  • Verify the API response from ollama.com to ensure the context limit is correctly returned as 262144 for the model in question.
  • Check the openclaw code or documentation to see if there are any known issues or limitations with parsing the ollama API response, particularly for the context_length field.
  • Compare the openclaw version (2026.4.21) with any available updates or patches that may address API parsing issues.
  • Test the openclaw models list command with other models to see if the incorrect context limit is specific to the nemotron-3-super model or a more general issue.

Example

No code example is provided as the issue does not imply a specific code change.

Notes

The issue may be related to how openclaw parses the API response from ollama.com, but without more information about the openclaw code or the API response handling, it's difficult to provide a more specific solution.

Recommendation

Apply a workaround by using the ollama.com API directly to fetch the correct context limits until an update or fix is available for openclaw. This ensures accurate information is available, even if openclaw is not correctly parsing the API response.

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 context limits shown by openclaw models list --all --provider ollama should be the same as this command. $ curl -s https://ollama.com/api/show -H "Content-Type: application/json" -d '{"name":"nemotron-3-super"}' | jq { "details": { "parent_model": "nemotron-3-super", "format": "", "family": "nemotron_h_moe", "families": null, "parameter_size": "120000000000", "quantization_level": "NVFP4" }, "model_info": { "general.architecture": "nemotron_h_moe", "general.parameter_count": 120000000000, "nemotron_h_moe.context_length": 262144, "nemotron_h_moe.embedding_length": 4096 }, "capabilities": [ "completion", "thinking", "tools" ], "modified_at": "2026-03-11T00:00:00Z" }

Still need to ship something?

×6

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

Back to top recommendations

TRENDING