Skip to content

Commit d1075ed

Browse files
committed
Adds Claude 3.5 Sonnet model support
1 parent 561de4d commit d1075ed

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
88

99
### Added
1010

11+
- Adds support for Anthropic's Claude 3.5 Sonnet model for GitLens' experimental AI features
1112
- Adds a new `counts` option to the `gitlens.launchpad.indicator.label` setting to show the status counts of items which need your attention in the _Launchpad_ status bar indicator
1213
- Adds _Search for Commits within Selection_ command to the editor context menu when there is a selection
1314
- Adds a `gitlens.launchpad.ignoredOrganizations` setting to specify an array of organizations (or users) to ignore in the _Launchpad_

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3598,6 +3598,7 @@
35983598
"openai:gpt-3.5-turbo",
35993599
"openai:gpt-3.5-turbo-16k",
36003600
"anthropic:claude-3-opus-20240229",
3601+
"anthropic:claude-3-5-sonnet-20240620",
36013602
"anthropic:claude-3-sonnet-20240229",
36023603
"anthropic:claude-3-haiku-20240307",
36033604
"anthropic:claude-2.1",
@@ -3617,6 +3618,7 @@
36173618
"OpenAI GPT-3.5 Turbo",
36183619
"OpenAI GPT-3.5 Turbo 16k",
36193620
"Anthropic Claude 3 Opus",
3621+
"Anthropic Claude 3.5 Sonnet",
36203622
"Anthropic Claude 3 Sonnet",
36213623
"Anthropic Claude 3 Haiku",
36223624
"Anthropic Claude 2.1",

src/ai/anthropicProvider.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export type AnthropicModels =
2929
| 'claude-2.1'
3030
| 'claude-3-opus-20240229'
3131
| 'claude-3-sonnet-20240229'
32+
| 'claude-3-5-sonnet-20240620'
3233
| 'claude-3-haiku-20240307';
3334

3435
type AnthropicModel = AIModel<typeof provider.id>;
@@ -40,6 +41,12 @@ const models: AnthropicModel[] = [
4041
maxTokens: 200000,
4142
provider: provider,
4243
},
44+
{
45+
id: 'claude-3-5-sonnet-20240620',
46+
name: 'Claude 3.5 Sonnet',
47+
maxTokens: 200000,
48+
provider: provider,
49+
},
4350
{
4451
id: 'claude-3-sonnet-20240229',
4552
name: 'Claude 3 Sonnet',

0 commit comments

Comments
 (0)