@ai-sdk/anthropic 4.0.86 → 4.0.88
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 +19 -0
- package/README.md +3 -15
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @ai-sdk/anthropic
|
|
2
2
|
|
|
3
|
+
## 4.0.88
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e729d58: chore(docs): update `README.md` for consistent format and to avoid duplication
|
|
8
|
+
- Updated dependencies [5475347]
|
|
9
|
+
- Updated dependencies [e729d58]
|
|
10
|
+
- @ai-sdk/provider@4.0.34
|
|
11
|
+
- @ai-sdk/provider-utils@5.0.68
|
|
12
|
+
|
|
13
|
+
## 4.0.87
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [8202f5b]
|
|
18
|
+
- Updated dependencies [85d84a1]
|
|
19
|
+
- @ai-sdk/provider-utils@5.0.67
|
|
20
|
+
- @ai-sdk/provider@4.0.33
|
|
21
|
+
|
|
3
22
|
## 4.0.86
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -6,10 +6,8 @@ The **[Anthropic provider](https://ai-sdk.dev/providers/ai-sdk-providers/anthrop
|
|
|
6
6
|
|
|
7
7
|
## Setup
|
|
8
8
|
|
|
9
|
-
The Anthropic provider is available in the `@ai-sdk/anthropic` module. You can install it with
|
|
10
|
-
|
|
11
9
|
```bash
|
|
12
|
-
npm i @ai-sdk/anthropic
|
|
10
|
+
npm i ai @ai-sdk/anthropic
|
|
13
11
|
```
|
|
14
12
|
|
|
15
13
|
## Skill for Coding Agents
|
|
@@ -20,15 +18,7 @@ If you use coding agents such as Claude Code or Cursor, we highly recommend addi
|
|
|
20
18
|
npx skills add vercel/ai
|
|
21
19
|
```
|
|
22
20
|
|
|
23
|
-
##
|
|
24
|
-
|
|
25
|
-
You can import the default provider instance `anthropic` from `@ai-sdk/anthropic`:
|
|
26
|
-
|
|
27
|
-
```ts
|
|
28
|
-
import { anthropic } from '@ai-sdk/anthropic';
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Example
|
|
21
|
+
## Usage
|
|
32
22
|
|
|
33
23
|
```ts
|
|
34
24
|
import { anthropic } from '@ai-sdk/anthropic';
|
|
@@ -40,6 +30,4 @@ const { text } = await generateText({
|
|
|
40
30
|
});
|
|
41
31
|
```
|
|
42
32
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
Please check out the **[Anthropic provider documentation](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic)** for more information.
|
|
33
|
+
See the [Anthropic Provider documentation](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic) for more information.
|
package/dist/index.js
CHANGED
|
@@ -7019,7 +7019,7 @@ var AnthropicSkills = class {
|
|
|
7019
7019
|
};
|
|
7020
7020
|
//#endregion
|
|
7021
7021
|
//#region src/version.ts
|
|
7022
|
-
const VERSION = "4.0.
|
|
7022
|
+
const VERSION = "4.0.88";
|
|
7023
7023
|
//#endregion
|
|
7024
7024
|
//#region src/anthropic-provider.ts
|
|
7025
7025
|
const ANTHROPIC_API_URL = "https://api.anthropic.com";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/anthropic",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.88",
|
|
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.34",
|
|
39
|
+
"@ai-sdk/provider-utils": "5.0.68"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@ai-sdk/test-server": "2.0.4",
|