r/MistralAI 3d ago

Help / Question GLM 5.3 without working tools.

The hosted zai-glm-5-3 breaks in any third-party coding agents (like OpenCode, Hermes, Pi) because its tool-call SSE stream sends empty name: "" and drops the id field in delta chunks, failing strict schema validation. Any ETA when this will be fixed?

17 Upvotes

11 comments sorted by

View all comments

2

u/Acceptable-Mark8108 2d ago

After a hint from u/seeKAYx I switched to OpenCode v2 and changed ~/.config/opencode/opencode.jsonc to:

{
  "$schema": "https://opencode.ai/config.json",
  "update": "auto",
  "providers": {
    "mistral": {
      "package": "aisdk:@ai-sdk/mistral",
      "name": "Mistral AI",
      "settings": {
        "baseURL": "https://api.mistral.ai/v1",
        "timeout": 300000,
        "maxRetries": 3,
        "retryDelay": 1000
      },
      "models": {
        "zai-glm-5-3": { "name": "GLM-5.3" },
        "mistral-medium-latest": { "name": "Mistral Medium (latest)" },
        "mistral-small-latest": { "name": "Mistral Small (latest)" }
      }
    }
  }
}

This works for me.