AI Vercel v5 SDK notes
Simple example
import {anthropic} from '@ai-sdk/anthropic';
import {generateText} from 'ai';
// ๐ Here we can choose the model
const model = anthropic('claude-3-5-haiku-latest');
export const answerMyQuestion = async (prompt: string) => {
const ...
huytrinh.hashnode.dev12 min read