Skip to content

Commit 1489c0e

Browse files
committed
added claude-3-7-sonnet model types
1 parent b0ba805 commit 1489c0e

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.changeset/yummy-poems-see.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'token.js': patch
33
---
44

5-
Added gpt-4.5 models
5+
Added claude 3-7 models

docs/providers/anthropic.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ main()
4040

4141
| Model | Chat Completion | Streaming | JSON Output | Image Input | Function Calling | N > 1 |
4242
| -------------------------- | --------------- | --------- | ----------- | ----------- | ---------------- | ----- |
43+
| claude-3-7-latest |||||||
44+
| claude-3-7-sonnet-20250219 |||||||
4345
| claude-3-5-sonnet-20240620 |||||||
4446
| claude-3-5-haiku-20241022 |||||||
4547
| claude-3-opus-20240229 |||||||

src/models.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ export const models = {
138138
},
139139
anthropic: {
140140
models: [
141+
'claude-3-7-latest',
142+
'claude-3-7-sonnet-20250219',
141143
'claude-3-5-sonnet-20240620',
142144
'claude-3-5-haiku-20241022',
143145
'claude-3-opus-20240229',
@@ -149,6 +151,8 @@ export const models = {
149151
] as const,
150152
supportsCompletion: true,
151153
supportsStreaming: [
154+
'claude-3-7-latest',
155+
'claude-3-7-sonnet-20250219',
152156
'claude-3-5-sonnet-20240620',
153157
'claude-3-5-haiku-20241022',
154158
'claude-3-opus-20240229',
@@ -160,12 +164,16 @@ export const models = {
160164
] as const,
161165
supportsJSON: [] as const,
162166
supportsImages: [
167+
'claude-3-7-latest',
168+
'claude-3-7-sonnet-20250219',
163169
'claude-3-5-sonnet-20240620',
164170
'claude-3-opus-20240229',
165171
'claude-3-sonnet-20240229',
166172
'claude-3-haiku-20240307',
167173
] as const,
168174
supportsToolCalls: [
175+
'claude-3-7-latest',
176+
'claude-3-7-sonnet-20250219',
169177
'claude-3-5-sonnet-20240620',
170178
'claude-3-5-haiku-20241022',
171179
'claude-3-opus-20240229',

0 commit comments

Comments
 (0)