Skip to content

fix(issue-52): disable tools for local models#54

Merged
SonicBotMan merged 1 commit into
mainfrom
fix/issue-52-disable-tools-for-local-models
Mar 18, 2026
Merged

fix(issue-52): disable tools for local models#54
SonicBotMan merged 1 commit into
mainfrom
fix/issue-52-disable-tools-for-local-models

Conversation

@SonicBotMan

Copy link
Copy Markdown
Owner

🐛 Bug Fix

Problem

Local models (llama.cpp/Ollama) return 500 error when called:

500 Unsupported param: tools

Root Cause

OpenClaw sends tools parameter (for function calling), but local model servers do not support OpenAI function calling format.

Solution

Add to bundled-local model config:

"capabilities": { "tools": false }

Changes

  • Add capabilities: { tools: false } to start.sh
  • Local models won't send tools parameter
  • Avoids 500 error

Testing

  • Manual config generation test passed
  • capabilities.tools set to false

Impact

  • Only affects bundled-local provider
  • Cloud API models unaffected
  • User-defined local models need to manually add capabilities.tools: false

Fixes #52

Local models (llama.cpp/Ollama) don't support OpenAI function calling format.
When OpenClaw sends the 'tools' parameter to local
models, it server returns 500 error.

This commit adds 'capabilities.tools: false' to the
bundled-local model configuration to disable tool calling.

Fixes #52
@SonicBotMan SonicBotMan merged commit d29b915 into main Mar 18, 2026
@SonicBotMan SonicBotMan deleted the fix/issue-52-disable-tools-for-local-models branch March 18, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

调用本地模型报500 Unsupported param: tools

1 participant