Skip to content

Commit

Permalink
feat: support claude 3.5 v2
Browse files Browse the repository at this point in the history
  • Loading branch information
rxliuli committed Nov 21, 2024
1 parent d344af3 commit 5a4d2cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/llm/__tests__/anthropic.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { beforeAll, expect, it } from 'vitest'
import {
anthropic,
anthropicVertex,
getImageAsBase64,
IAnthropicVertex,
} from '../anthropic'
import { AnthropicVertex } from '@anthropic-ai/vertex-sdk'

let client: IAnthropicVertex
beforeAll(() => {
Expand Down
4 changes: 4 additions & 0 deletions src/llm/anthropic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ export function anthropicVertex(env: Record<string, string>): IAnthropicVertex {
'VERTEX_ANTROPIC_PROJECTID',
]
r.supportModels = [
'claude-3-5-sonnet-v2@20241022',
'claude-3-5-haiku@20241022',
'claude-3-5-sonnet@20240620',
'claude-3-haiku@20240307',
'claude-3-opus@20240229',
Expand All @@ -308,6 +310,8 @@ export function anthropic(env: Record<string, string>): IAnthropicVertex {
r.name = 'anthropic'
r.requiredEnv = ['ANTROPIC_API_KEY']
r.supportModels = [
'claude-3-5-sonnet-20241022',
'claude-3-5-haiku-20241022',
'claude-3-5-sonnet-20240620',
'claude-3-opus-20240229',
'claude-3-sonnet-20240229',
Expand Down

0 comments on commit 5a4d2cb

Please sign in to comment.