bolt.new/app/lib/.server/llm/model.ts
2024-09-25 19:54:09 +01: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');
}