bolt.new/app/lib/.server/llm/model.ts
zyh 4baf31d516 feat: 添加对新特性(API)的修改;
fix: 修复了代码中的一个错误;
refactor: 重写/重构代码,但没有改变API的行为;
style: 添加了空格、格式化、缺失的分号等;
test: 添加了缺失的测试或修正了现有的测试;
docs: 更新了文档,如readme;
build: 更新了依赖、项目版本;
ops: 影响了基础设施、部署、备份、恢复等操作性组件;
chore: 修改了.gitignore等;

根据以上信息,你的commit message可以是:
2024-10-11 12:10:07 +00:00

11 lines
279 B
TypeScript

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