We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TypeValidationError
1 parent 35490bc commit 074dcfdCopy full SHA for 074dcfd
content/docs/04-ai-sdk-ui/03-chatbot-message-persistence.mdx
@@ -148,7 +148,7 @@ import {
148
convertToModelMessages,
149
streamText,
150
validateUIMessages,
151
- AITypeValidationError,
+ TypeValidationError,
152
} from 'ai';
153
import { type MyUIMessage } from '@/types';
154
@@ -167,7 +167,7 @@ export async function POST(req: Request) {
167
metadataSchema,
168
});
169
} catch (error) {
170
- if (error instanceof AITypeValidationError) {
+ if (error instanceof TypeValidationError) {
171
// Log validation error for monitoring
172
console.error('Database messages validation failed:', error);
173
// Could implement message migration or filtering here
0 commit comments