GLM-5 tool calling problem "Error message: JSON Parse error: Expected '}'"

#59
by birolkuyumcu - opened

https://github.com/zai-org/GLM-5/issues/15

GLM-5 model deployed with vLLM produces malformed JSON in tool call arguments when used with OpenCode, causing file write operations and other tool calls to fail intermittently. The model generates truncated JSON payloads missing closing braces, which breaks the JSON parser on the client side.

Environment
Model: z-ai/glm5 (GLM-5)
Deployment: vLLM (local) dgx-b300
tool_call_parser : glm47
Client: OpenCode
API: OpenAI-compatible endpoint (http://localhost:8000/v1)
Operating System: Linux

Sign up or log in to comment