import Anthropic from '@anthropic-ai/sdk'; export async function message(text: string) { const anthropic = new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY }); return anthropic.messages.create({ model: 'claude-3-5-sonnet-20240620', max_tokens: 1024, messages: [{ role: 'user', content: text }] }); }