ai-chatbot icon indicating copy to clipboard operation
ai-chatbot copied to clipboard

Update addToolMessageToChat function to use `parts` instead of `toolInvocations` which is deprecated

Open Irere123 opened this issue 10 months ago • 1 comments

The utility function addToolMessageToChat function is using message.toolInvocations which is deprecated and should now now use parts

Irere123 avatar Mar 02 '25 08:03 Irere123

This happens when using ai version ^4.1.47

Irere123 avatar Mar 02 '25 08:03 Irere123

@Irere123 Thanks for opening this issue! The template currently uses the updated message parts and addToolMessageToChat has been removed in #951

jeremyphilemon avatar May 01 '25 01:05 jeremyphilemon