Skip to content

Commit eeccbd3

Browse files
committed
fix(runtime): upgrade dropped content warnings to errors
1 parent 2c546e4 commit eeccbd3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/runtime/src/agent/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ function convertUserMessageContent(
330330
mediaType: source.mimeType,
331331
});
332332
} catch {
333-
console.warn(
333+
console.error(
334334
`[CopilotKit] convertUserMessageContent: invalid URL "${source.value}" in image part — skipping`,
335335
);
336336
}
@@ -357,7 +357,7 @@ function convertUserMessageContent(
357357
mediaType: source.mimeType,
358358
});
359359
} catch {
360-
console.warn(
360+
console.error(
361361
`[CopilotKit] convertUserMessageContent: invalid URL "${source.value}" in ${part.type} part — skipping`,
362362
);
363363
}
@@ -390,7 +390,7 @@ function convertUserMessageContent(
390390
parts.push({ type: "file", data: url, mediaType: mimeType });
391391
}
392392
} catch {
393-
console.warn(
393+
console.error(
394394
`[CopilotKit] convertUserMessageContent: invalid URL "${legacy.url}" in binary part — skipping`,
395395
);
396396
}
@@ -399,7 +399,7 @@ function convertUserMessageContent(
399399
}
400400

401401
default: {
402-
console.warn(
402+
console.error(
403403
`[CopilotKit] convertUserMessageContent: unrecognized content part type "${(part as { type: string }).type}" — skipping`,
404404
);
405405
break;

0 commit comments

Comments
 (0)