appendClientMessage fail when implementing message persistence #4552
Unanswered
tha-hammer
asked this question in
Help
Replies: 1 comment
-
Are you using the latest library versions? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using new AI SDK to 'hack' the Vercel "out of the box" AI UI (wow that would sound like total gobbledygook to just about 99.99% of the world I think, lol)
Error:
/app/(chat)/api/chat/route.ts:7:3
Type error: Module '"ai"' has no exported member 'appendClientMessage'.
5 | smoothStream,
6 | streamText,
Code:
import {
type Message,
convertToCoreMessages,
createDataStreamResponse,
smoothStream,
streamText,
appendClientMessage
} from 'ai';
I quintuple checked my spelling. Added an installer package just in case...
Install "extras" pnpm add @ai-sdk/anthropic @ai-sdk/openai zod ai
I'm just an idiot right... this is something easy?
Beta Was this translation helpful? Give feedback.
All reactions