这个 AWS提供者上的克洛德平台 联 合 国 AI SDK 软件
允许您访问 AWS 中的 Anthropic Messages API
aws-external-anthropic.{region}.api.aws,用 AWS SigV4 或 a 认证
AWS 提供的 API 密钥 .
设置
npm i ai @ai-sdk/anthropic-aws
使用量
import { createAnthropicAws } from '@ai-sdk/anthropic-aws';
import { generateText } from 'ai';
const anthropicAws = createAnthropicAws();
const { text } = await generateText({
model: anthropicAws('claude-sonnet-5-5'),
prompt: 'Invent a new holiday and describe its traditions.',
});