Support for format: 'aisdk' in streamVNext for mastra/client-js

It appears that { format: 'aisdk' } is not supported in client-js.
9 Replies
Mastra Triager
Mastra Triager2mo ago
GitHub
[DISCORD:1410884301402279947] Support for format: 'aisdk' in stream...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1410884301402279947 It appears that { format: 'aisdk' } is not supported in client-js.
Ward
Ward2mo ago
I'm thinking we will create a custom endpoin for this with a custom package so you can use useChat immediatly
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Ward
Ward2mo ago
we have it on alpha, it will go out today you can install @mastra/ai-sdk@alpha now
kosukeoya
kosukeoyaOP2mo ago
@Ward Thanks! Is it not supported via client-js? My architecture is as shown in the image below, so it would be preferable if the ai-sdk format could be used with client-js. https://discord.com/channels/1309558646228779139/1378973340097712158/1379277104386015232
Ward
Ward2mo ago
we will deprecate the format soon and only allow through the extra plugin. We'll add the ability to extend client-js or do raw requests
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Ward
Ward2mo ago
chatRoute({ path: '/chat/:agentId', agent: "athenaAI", }), should allow you to use things like useChat, or call it yourself with fetch. I'll see if I can squeeze this change in
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?