We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c285304 commit 06acd70Copy full SHA for 06acd70
packages/opencode/src/provider/transform.ts
@@ -22,7 +22,10 @@ export namespace ProviderTransform {
22
if (model.api.npm === "@ai-sdk/anthropic") {
23
msgs = msgs
24
.map((msg) => {
25
- if (typeof msg.content === "string") return msg
+ if (typeof msg.content === "string") {
26
+ if (msg.content === "") return undefined
27
+ return msg
28
+ }
29
if (!Array.isArray(msg.content)) return msg
30
const filtered = msg.content.filter((part) => {
31
if (part.type === "text" || part.type === "reasoning") {
0 commit comments