|
5 | 5 | ## Usage |
6 | 6 |
|
7 | 7 | {% code title=".env" %} |
| 8 | + |
8 | 9 | ```bash |
9 | 10 | ANTHROPIC_API_KEY= |
10 | 11 | ``` |
| 12 | + |
11 | 13 | {% endcode %} |
12 | 14 |
|
13 | 15 | ```typescript |
@@ -36,28 +38,31 @@ main() |
36 | 38 | ``` |
37 | 39 |
|
38 | 40 | <!-- compatibility --> |
| 41 | + |
39 | 42 | ## Supported Models |
40 | 43 |
|
41 | 44 | | Model | Chat Completion | Streaming | JSON Output | Image Input | Function Calling | N > 1 | |
42 | 45 | | -------------------------- | --------------- | --------- | ----------- | ----------- | ---------------- | ----- | |
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 | ✅ | ✅ | ➖ | ➖ | ➖ | ➖ | |
53 | 56 |
|
54 | 57 | ### 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 | + |
59 | 64 | <!-- end compatibility --> |
60 | 65 |
|
61 | 66 | ## Additional Resources |
62 | 67 |
|
63 | | -* [Anthropic Documentation](https://docs.anthropic.com) |
| 68 | +- [Anthropic Documentation](https://docs.anthropic.com) |
0 commit comments