fix(ollama): honor baseURL provider aliases

This commit is contained in:
Peter Steinberger
2026-04-27 03:28:14 +01:00
parent ae89d44760
commit dc78d58448
14 changed files with 231 additions and 13 deletions

View File

@@ -13,6 +13,8 @@ OpenClaw integrates with Ollama's native API (`/api/chat`) for hosted cloud mode
**Remote Ollama users**: Do not use the `/v1` OpenAI-compatible URL (`http://host:11434/v1`) with OpenClaw. This breaks tool calling and models may output raw tool JSON as plain text. Use the native Ollama API URL instead: `baseUrl: "http://host:11434"` (no `/v1`).
</Warning>
Ollama provider config uses `baseUrl` as the canonical key. OpenClaw also accepts `baseURL` for compatibility with OpenAI SDK-style examples, but new config should prefer `baseUrl`.
## Getting started
Choose your preferred setup method and mode.