From dff5c8c0b6d2c6e99264045a61b554e574602e9d Mon Sep 17 00:00:00 2001 From: "openclaw-docs-sync[bot]" Date: Mon, 27 Apr 2026 01:35:46 +0000 Subject: [PATCH] chore(sync): mirror docs from openclaw/openclaw@69daef8246f15bd8af6500e73f6f88210fe5d56e --- .openclaw-sync/source.json | 4 ++-- docs/providers/ollama.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.openclaw-sync/source.json b/.openclaw-sync/source.json index 6ea9cd883..173d19846 100644 --- a/.openclaw-sync/source.json +++ b/.openclaw-sync/source.json @@ -1,5 +1,5 @@ { "repository": "openclaw/openclaw", - "sha": "8c18df02f3d01f36c1c94ae805724f963f4ac4b9", - "syncedAt": "2026-04-27T01:09:05.650Z" + "sha": "69daef8246f15bd8af6500e73f6f88210fe5d56e", + "syncedAt": "2026-04-27T01:34:24.966Z" } diff --git a/docs/providers/ollama.md b/docs/providers/ollama.md index 27f5aead3..0233c70f6 100644 --- a/docs/providers/ollama.md +++ b/docs/providers/ollama.md @@ -155,7 +155,7 @@ When you set `OLLAMA_API_KEY` (or an auth profile) and **do not** define `models | Behavior | Detail | | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Catalog query | Queries `/api/tags` | -| Capability detection | Uses best-effort `/api/show` lookups to read `contextWindow` and detect capabilities (including vision) | +| Capability detection | Uses best-effort `/api/show` lookups to read `contextWindow`, expanded `num_ctx` Modelfile parameters, and capabilities including vision/tools | | Vision models | Models with a `vision` capability reported by `/api/show` are marked as image-capable (`input: ["text", "image"]`), so OpenClaw auto-injects images into the prompt | | Reasoning detection | Marks `reasoning` with a model-name heuristic (`r1`, `reasoning`, `think`) | | Token limits | Sets `maxTokens` to the default Ollama max-token cap used by OpenClaw | @@ -399,7 +399,7 @@ For the full setup and behavior details, see [Ollama Web Search](/tools/ollama-s - For auto-discovered models, OpenClaw uses the context window reported by Ollama when available, otherwise it falls back to the default Ollama context window used by OpenClaw. + For auto-discovered models, OpenClaw uses the context window reported by Ollama when available, including larger `PARAMETER num_ctx` values from custom Modelfiles. Otherwise it falls back to the default Ollama context window used by OpenClaw. You can override `contextWindow` and `maxTokens` in explicit provider config: