Skip to content

Commit adb5f72

Browse files
authored
Merge pull request #157 from haseab/add-claude-3-7-models
added claude-3-7-sonnet model types
2 parents b0ba805 + a32d541 commit adb5f72

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
## Usage
66

77
{% code title=".env" %}
8+
89
```bash
910
ANTHROPIC_API_KEY=
1011
```
12+
1113
{% endcode %}
1214

1315
```typescript
@@ -40,6 +42,9 @@ main()
4042

4143
| Model | Chat Completion | Streaming | JSON Output | Image Input | Function Calling | N > 1 |
4244
| -------------------------- | --------------- | --------- | ----------- | ----------- | ---------------- | ----- |
45+
| claude-3-7-sonnet-latest |||||||
46+
| claude-3-7-sonnet-20250219 |||||||
47+
| claude-3-5-sonnet-latest |||||||
4348
| claude-3-5-sonnet-20240620 |||||||
4449
| claude-3-5-haiku-20241022 |||||||
4550
| claude-3-opus-20240229 |||||||
@@ -58,4 +63,4 @@ main()
5863

5964
## Additional Resources
6065

61-
* [Anthropic Documentation](https://docs.anthropic.com)
66+
- [Anthropic Documentation](https://docs.anthropic.com)

src/models.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ export const models = {
138138
},
139139
anthropic: {
140140
models: [
141+
'claude-3-7-sonnet-latest',
142+
'claude-3-7-sonnet-20250219',
143+
'claude-3-5-sonnet-latest',
141144
'claude-3-5-sonnet-20240620',
142145
'claude-3-5-haiku-20241022',
143146
'claude-3-opus-20240229',
@@ -149,6 +152,9 @@ export const models = {
149152
] as const,
150153
supportsCompletion: true,
151154
supportsStreaming: [
155+
'claude-3-7-sonnet-latest',
156+
'claude-3-7-sonnet-20250219',
157+
'claude-3-5-sonnet-latest',
152158
'claude-3-5-sonnet-20240620',
153159
'claude-3-5-haiku-20241022',
154160
'claude-3-opus-20240229',
@@ -160,12 +166,18 @@ export const models = {
160166
] as const,
161167
supportsJSON: [] as const,
162168
supportsImages: [
169+
'claude-3-7-sonnet-latest',
170+
'claude-3-7-sonnet-20250219',
171+
'claude-3-5-sonnet-latest',
163172
'claude-3-5-sonnet-20240620',
164173
'claude-3-opus-20240229',
165174
'claude-3-sonnet-20240229',
166175
'claude-3-haiku-20240307',
167176
] as const,
168177
supportsToolCalls: [
178+
'claude-3-7-sonnet-latest',
179+
'claude-3-7-sonnet-20250219',
180+
'claude-3-5-sonnet-latest',
169181
'claude-3-5-sonnet-20240620',
170182
'claude-3-5-haiku-20241022',
171183
'claude-3-opus-20240229',

0 commit comments

Comments
 (0)