bolt.new/packages/bolt/app/lib/.server/llm/model.ts
2024-07-11 16:20:57 +02:00

10 lines
215 B
TypeScript

import { createAnthropic } from '@ai-sdk/anthropic';
export function getAnthropicModel(apiKey: string) {
const anthropic = createAnthropic({
apiKey,
});
return anthropic('claude-3-5-sonnet-20240620');
}