Skip to content

Commit

Permalink
💄 style: add claude 3.5 haiku model (lobehub#4608)
Browse files Browse the repository at this point in the history
* Update anthropic.ts

* Update anthropic.ts

* Update anthropic.ts

* Update anthropic.ts

* Update anthropic.ts
  • Loading branch information
LovelyGuYiMeng authored Nov 5, 2024
1 parent bcea6f1 commit 0fdf43f
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/config/modelProviders/anthropic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@ import { ModelProviderCard } from '@/types/llm';
// ref: https://docs.anthropic.com/en/docs/about-claude/models#model-names
const Anthropic: ModelProviderCard = {
chatModels: [
{
description:
'Claude 3.5 Haiku 是 Anthropic 最快的下一代模型。与 Claude 3 Haiku 相比,Claude 3.5 Haiku 在各项技能上都有所提升,并在许多智力基准测试中超越了上一代最大的模型 Claude 3 Opus。',
displayName: 'Claude 3.5 Haiku',
enabled: true,
functionCall: true,
id: 'claude-3-5-haiku-20241022',
maxOutput: 8192,
pricing: {
cachedInput: 0.1,
input: 1,
output: 5,
writeCacheInput: 1.25,
},
releasedAt: '2024-11-05',
tokens: 200_000,
},
{
description:
'Claude 3.5 Sonnet 提供了超越 Opus 的能力和比 Sonnet 更快的速度,同时保持与 Sonnet 相同的价格。Sonnet 特别擅长编程、数据科学、视觉处理、代理任务。',
Expand Down Expand Up @@ -42,7 +59,6 @@ const Anthropic: ModelProviderCard = {
description:
'Claude 3 Haiku 是 Anthropic 的最快且最紧凑的模型,旨在实现近乎即时的响应。它具有快速且准确的定向性能。',
displayName: 'Claude 3 Haiku',
enabled: true,
functionCall: true,
id: 'claude-3-haiku-20240307',
maxOutput: 4096,
Expand All @@ -58,7 +74,6 @@ const Anthropic: ModelProviderCard = {
description:
'Claude 3 Sonnet 在智能和速度方面为企业工作负载提供了理想的平衡。它以更低的价格提供最大效用,可靠且适合大规模部署。',
displayName: 'Claude 3 Sonnet',
enabled: true,
functionCall: true,
id: 'claude-3-sonnet-20240229',
maxOutput: 4096,
Expand Down

0 comments on commit 0fdf43f

Please sign in to comment.