File tree Expand file tree Collapse file tree
packages/runtime/src/agent Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments