Skip to content

Commit

Permalink
feat(claude-adapter): add new Claude 3.5 models and update model conf…
Browse files Browse the repository at this point in the history
…igurations

- Add two new Claude 3.5 models: 'claude-3-5-sonnet-20241022' and 'claude-3-5-haiku-20241022'
- Update model configurations to enable function calls for Claude 3 models
  • Loading branch information
dingyi222666 committed Dec 18, 2024
1 parent 64ff2c9 commit ea49eae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/claude-adapter/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ export class ClaudeClient extends PlatformModelClient {
'claude-3-5-sonnet-20240620',
'claude-3-opus-20240229',
'claude-3-sonnet-20240229',
'claude-3-5-sonnet-20241022',
'claude-3-5-haiku-20241022',
'claude-3-haiku-20240307',
'claude-2.1',
'claude-2.0',
Expand All @@ -64,6 +66,7 @@ export class ClaudeClient extends PlatformModelClient {
model.includes('2.0') || model.includes('1.2')
? 1000000
: 2000000,
functionCall: model.includes('claude-3'),
type: ModelType.llm
}
})
Expand Down

0 comments on commit ea49eae

Please sign in to comment.