mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:20:43 +00:00
fix(lmstudio): promote bracketed tool calls
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user