Skip to content

fix anthropic streaming content_block_start struct bug#604

Merged
zijiren233 merged 1 commit into
labring:mainfrom
huangwei1024:main
Jun 20, 2026
Merged

fix anthropic streaming content_block_start struct bug#604
zijiren233 merged 1 commit into
labring:mainfrom
huangwei1024:main

Conversation

@huangwei1024

Copy link
Copy Markdown
Contributor

opencode Error message: [
{
"expected": "string",
"code": "invalid_type",
"path": [
"content_block",
"text"
],
"message": "Invalid input: expected string, received undefined"
}
]


-- it is claude exmple

event: content_block_start
data: {"type": "content_block_start", "index": 0, "content_block": {"type": "text", "text": ""}}

opencode Error message: [
  {
    "expected": "string",
    "code": "invalid_type",
    "path": [
      "content_block",
      "text"
    ],
    "message": "Invalid input: expected string, received undefined"
  }
]


-----
-- it is claude exmple
-----

event: content_block_start
data: {"type": "content_block_start", "index": 0, "content_block": {"type": "text", "text": ""}}
@cla-assistant

cla-assistant Bot commented Jun 19, 2026

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@zijiren233 zijiren233 merged commit 449859f into labring:main Jun 20, 2026
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants