fix(lmstudio): promote bracketed tool calls

This commit is contained in:
Peter Steinberger
2026-04-27 08:38:42 +01:00
parent d5e6abcb3d
commit da55212c6e
8 changed files with 740 additions and 4 deletions

View File

@@ -164,6 +164,11 @@ Compatibility notes for stricter OpenAI-compatible backends:
structured content-part arrays. Set
`models.providers.<provider>.models[].compat.requiresStringContent: true` for
those endpoints.
- Some local models emit standalone bracketed tool requests as text, such as
`[tool_name]` followed by JSON and `[END_TOOL_REQUEST]`. OpenClaw promotes
those into real tool calls only when the name exactly matches a registered
tool for the turn; otherwise the block is treated as unsupported text and is
hidden from user-visible replies.
- Some smaller or stricter local backends are unstable with OpenClaw's full
agent-runtime prompt shape, especially when tool schemas are included. If the
backend works for tiny direct `/v1/chat/completions` calls but fails on normal