Commit 449859f
authored
fix: anthropic streaming content_block_start struct bug (#604)
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": ""}}1 parent 3092a51 commit 449859f
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments