Skip to content

GLM 4.7 AI_JSONParseError #8431

Closed
Closed

Description

@Wierzciu

Description

Hello
I know it's a GLM 4.7 model issue with JSON Parse but it maybe some way to fix? to not wait for Z.AI fix this?

AI_JSONParseError: JSON parsing failed: Text: {"id":data: {"id":"20260114190457bebb028fd3f84ae9","created":1768388698,"object":"chat.completion.chunk","model":"glm-4.7","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Now"}}]}.
Error message: JSON Parse error: Unexpected identifier "data

Plugins

No response

OpenCode version

1.1.19

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

macOS 26.2

Terminal

Warp / Ghostty

Activity

  1. changed the title [-]GLM 4.7[/-] [+]GLM 4.7 AI_JSONParseError[/+] on Jan 14, 2026
  2. github-actions commented on Jan 14, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    All of these issues report similar JSON parsing errors and streaming issues with the GLM-4.7 model. The root cause appears to be related to how SSE (Server-Sent Events) chunks are being parsed and handled during streaming responses from GLM-4.7.

    Feel free to ignore if your specific case differs from these issues.

  3. Wierzciu commented on Jan 15, 2026

    @Wierzciu
    Author
    Image
  4. github-actions commented on Mar 26, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingzenRelates to Zen

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions