Skip to content

Commit ad5bdcf

Browse files
committed
fix typo
1 parent 1489c0e commit ad5bdcf

File tree

2 files changed

+24
-19
lines changed

2 files changed

+24
-19
lines changed

docs/providers/anthropic.md

Lines changed: 20 additions & 15 deletions
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
@@ -36,28 +38,31 @@ main()
3638
```
3739

3840
<!-- compatibility -->
41+
3942
## Supported Models
4043

4144
| Model | Chat Completion | Streaming | JSON Output | Image Input | Function Calling | N > 1 |
4245
| -------------------------- | --------------- | --------- | ----------- | ----------- | ---------------- | ----- |
43-
| claude-3-7-latest | | | | | | |
44-
| claude-3-7-sonnet-20250219 | | | | | | |
45-
| claude-3-5-sonnet-20240620 | | | | | | |
46-
| claude-3-5-haiku-20241022 | | | | | | |
47-
| claude-3-opus-20240229 | | | | | | |
48-
| claude-3-sonnet-20240229 | | | | | | |
49-
| claude-3-haiku-20240307 | | | | | | |
50-
| claude-2.1 | | | | | | |
51-
| claude-2.0 | | | | | | |
52-
| claude-instant-1.2 | | | | | | |
46+
| claude-3-7-sonnet-latest |||||||
47+
| claude-3-7-sonnet-20250219 |||||||
48+
| claude-3-5-sonnet-20240620 |||||||
49+
| claude-3-5-haiku-20241022 |||||||
50+
| claude-3-opus-20240229 |||||||
51+
| claude-3-sonnet-20240229 |||||||
52+
| claude-3-haiku-20240307 |||||||
53+
| claude-2.1 |||||||
54+
| claude-2.0 |||||||
55+
| claude-instant-1.2 |||||||
5356

5457
### Legend
55-
| Symbol | Description |
56-
|--------------------|---------------------------------------|
57-
| :white_check_mark: | Supported by Token.js |
58-
| :heavy_minus_sign: | Not supported by the LLM provider, so Token.js cannot support it |
58+
59+
| Symbol | Description |
60+
| ------------------ | ---------------------------------------------------------------- |
61+
| :white_check_mark: | Supported by Token.js |
62+
| :heavy_minus_sign: | Not supported by the LLM provider, so Token.js cannot support it |
63+
5964
<!-- end compatibility -->
6065

6166
## Additional Resources
6267

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

src/models.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export const models = {
138138
},
139139
anthropic: {
140140
models: [
141-
'claude-3-7-latest',
141+
'claude-3-7-sonnet-latest',
142142
'claude-3-7-sonnet-20250219',
143143
'claude-3-5-sonnet-20240620',
144144
'claude-3-5-haiku-20241022',
@@ -151,7 +151,7 @@ export const models = {
151151
] as const,
152152
supportsCompletion: true,
153153
supportsStreaming: [
154-
'claude-3-7-latest',
154+
'claude-3-7-sonnet-latest',
155155
'claude-3-7-sonnet-20250219',
156156
'claude-3-5-sonnet-20240620',
157157
'claude-3-5-haiku-20241022',
@@ -164,15 +164,15 @@ export const models = {
164164
] as const,
165165
supportsJSON: [] as const,
166166
supportsImages: [
167-
'claude-3-7-latest',
167+
'claude-3-7-sonnet-latest',
168168
'claude-3-7-sonnet-20250219',
169169
'claude-3-5-sonnet-20240620',
170170
'claude-3-opus-20240229',
171171
'claude-3-sonnet-20240229',
172172
'claude-3-haiku-20240307',
173173
] as const,
174174
supportsToolCalls: [
175-
'claude-3-7-latest',
175+
'claude-3-7-sonnet-latest',
176176
'claude-3-7-sonnet-20250219',
177177
'claude-3-5-sonnet-20240620',
178178
'claude-3-5-haiku-20241022',

0 commit comments

Comments
 (0)