@ai-sdk/anthropic 4.0.10 → 4.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/index.js +1 -1
- package/docs/05-anthropic.mdx +15 -29
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -6295,7 +6295,7 @@ var AnthropicSkills = class {
|
|
|
6295
6295
|
};
|
|
6296
6296
|
|
|
6297
6297
|
// src/version.ts
|
|
6298
|
-
var VERSION = true ? "4.0.
|
|
6298
|
+
var VERSION = true ? "4.0.11" : "0.0.0-test";
|
|
6299
6299
|
|
|
6300
6300
|
// src/anthropic-provider.ts
|
|
6301
6301
|
var ANTHROPIC_API_URL = "https://api.anthropic.com";
|
package/docs/05-anthropic.mdx
CHANGED
|
@@ -11,21 +11,7 @@ The [Anthropic](https://www.anthropic.com/) provider contains language model sup
|
|
|
11
11
|
|
|
12
12
|
The Anthropic provider is available in the `@ai-sdk/anthropic` module. You can install it with
|
|
13
13
|
|
|
14
|
-
<
|
|
15
|
-
<Tab>
|
|
16
|
-
<Snippet text="pnpm add @ai-sdk/anthropic" dark />
|
|
17
|
-
</Tab>
|
|
18
|
-
<Tab>
|
|
19
|
-
<Snippet text="npm install @ai-sdk/anthropic" dark />
|
|
20
|
-
</Tab>
|
|
21
|
-
<Tab>
|
|
22
|
-
<Snippet text="yarn add @ai-sdk/anthropic" dark />
|
|
23
|
-
</Tab>
|
|
24
|
-
|
|
25
|
-
<Tab>
|
|
26
|
-
<Snippet text="bun add @ai-sdk/anthropic" dark />
|
|
27
|
-
</Tab>
|
|
28
|
-
</Tabs>
|
|
14
|
+
<InstallPackages packages="@ai-sdk/anthropic" />
|
|
29
15
|
|
|
30
16
|
## Provider Instance
|
|
31
17
|
|
|
@@ -1623,20 +1609,20 @@ and the `mediaType` should be set to `'application/pdf'`.
|
|
|
1623
1609
|
|
|
1624
1610
|
### Model Capabilities
|
|
1625
1611
|
|
|
1626
|
-
| Model | Image Input
|
|
1627
|
-
| ------------------- |
|
|
1628
|
-
| `claude-sonnet-5` | <Check
|
|
1629
|
-
| `claude-fable-5` | <Check
|
|
1630
|
-
| `claude-opus-4-8` | <Check
|
|
1631
|
-
| `claude-opus-4-7` | <Check
|
|
1632
|
-
| `claude-opus-4-6` | <Check
|
|
1633
|
-
| `claude-sonnet-4-6` | <Check
|
|
1634
|
-
| `claude-opus-4-5` | <Check
|
|
1635
|
-
| `claude-haiku-4-5` | <Check
|
|
1636
|
-
| `claude-sonnet-4-5` | <Check
|
|
1637
|
-
| `claude-opus-4-1` | <Check
|
|
1638
|
-
| `claude-opus-4-0` | <Check
|
|
1639
|
-
| `claude-sonnet-4-0` | <Check
|
|
1612
|
+
| Model | Image Input | Object Generation | Tool Usage | Computer Use | Web Search | Tool Search | Compaction |
|
|
1613
|
+
| ------------------- | ----------- | ----------------- | ---------- | ------------ | ---------- | ----------- | ---------- |
|
|
1614
|
+
| `claude-sonnet-5` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
1615
|
+
| `claude-fable-5` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
1616
|
+
| `claude-opus-4-8` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
1617
|
+
| `claude-opus-4-7` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
1618
|
+
| `claude-opus-4-6` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
1619
|
+
| `claude-sonnet-4-6` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | |
|
|
1620
|
+
| `claude-opus-4-5` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | |
|
|
1621
|
+
| `claude-haiku-4-5` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | | |
|
|
1622
|
+
| `claude-sonnet-4-5` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | |
|
|
1623
|
+
| `claude-opus-4-1` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | | |
|
|
1624
|
+
| `claude-opus-4-0` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | | |
|
|
1625
|
+
| `claude-sonnet-4-0` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | | |
|
|
1640
1626
|
|
|
1641
1627
|
<Note>
|
|
1642
1628
|
The table above lists popular models. Please see the [Anthropic
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/anthropic",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@ai-sdk/provider": "4.0.
|
|
39
|
-
"@ai-sdk/provider-utils": "5.0.
|
|
38
|
+
"@ai-sdk/provider": "4.0.3",
|
|
39
|
+
"@ai-sdk/provider-utils": "5.0.7"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/node": "22.19.19",
|