Skip to content

Cerebras zai-glm-4.7 fails on follow-up turn with reasoning_content #26762

Description

@ryanl-cerebras

Description

Using cerebras/zai-glm-4.7 on newer OpenCode versions, multi-turn runs that include reasoning and tool calls can fail on a follow-up assistant turn with:

messages.2.assistant.reasoning_content: property 'messages.2.assistant.reasoning_content' is unsupported

I can reproduce this on opencode 1.14.41.

The same prompt worked for me on opencode 1.1.4, and it also works on a local patched build from current dev, so this looks like a regression in how prior assistant reasoning is replayed for Cerebras models.

Plugins

None

OpenCode version

1.14.41

Steps to reproduce

  1. Configure a Cerebras provider and use cerebras/zai-glm-4.7

  2. Run from a clean directory, for example mkdir inferencex && cd inferencex

  3. Run this prompt:

    build an frontend for inferencex performance benchmark

  4. Let the run continue into tool use and the next assistant turn

  5. Observe the error:

    messages.2.assistant.reasoning_content: property 'messages.2.assistant.reasoning_content' is unsupported

Screenshot and/or share link

Image

Operating System

macOS

Terminal

iTerm2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions