@ai-sdk/anthropic 2.0.34 → 2.0.36
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 +12 -0
- package/dist/index.d.mts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +8 -0
- package/dist/internal/index.d.ts +8 -0
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @ai-sdk/anthropic
|
|
2
2
|
|
|
3
|
+
## 2.0.36
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5a46f11: add return `file_id` property for anthropic code-execution-20250825 to download output files.
|
|
8
|
+
|
|
9
|
+
## 2.0.35
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 1091a20: support ANTHROPIC_BASE_URL
|
|
14
|
+
|
|
3
15
|
## 2.0.34
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -147,6 +147,10 @@ declare const anthropicTools: {
|
|
|
147
147
|
new_str: string;
|
|
148
148
|
}, {
|
|
149
149
|
type: "bash_code_execution_result";
|
|
150
|
+
content: Array<{
|
|
151
|
+
type: "bash_code_execution_output";
|
|
152
|
+
file_id: string;
|
|
153
|
+
}>;
|
|
150
154
|
stdout: string;
|
|
151
155
|
stderr: string;
|
|
152
156
|
return_code: number;
|
|
@@ -193,6 +197,10 @@ declare const anthropicTools: {
|
|
|
193
197
|
new_str: string;
|
|
194
198
|
}, {
|
|
195
199
|
type: "bash_code_execution_result";
|
|
200
|
+
content: Array<{
|
|
201
|
+
type: "bash_code_execution_output";
|
|
202
|
+
file_id: string;
|
|
203
|
+
}>;
|
|
196
204
|
stdout: string;
|
|
197
205
|
stderr: string;
|
|
198
206
|
return_code: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -147,6 +147,10 @@ declare const anthropicTools: {
|
|
|
147
147
|
new_str: string;
|
|
148
148
|
}, {
|
|
149
149
|
type: "bash_code_execution_result";
|
|
150
|
+
content: Array<{
|
|
151
|
+
type: "bash_code_execution_output";
|
|
152
|
+
file_id: string;
|
|
153
|
+
}>;
|
|
150
154
|
stdout: string;
|
|
151
155
|
stderr: string;
|
|
152
156
|
return_code: number;
|
|
@@ -193,6 +197,10 @@ declare const anthropicTools: {
|
|
|
193
197
|
new_str: string;
|
|
194
198
|
}, {
|
|
195
199
|
type: "bash_code_execution_result";
|
|
200
|
+
content: Array<{
|
|
201
|
+
type: "bash_code_execution_output";
|
|
202
|
+
file_id: string;
|
|
203
|
+
}>;
|
|
196
204
|
stdout: string;
|
|
197
205
|
stderr: string;
|
|
198
206
|
return_code: number;
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var import_provider4 = require("@ai-sdk/provider");
|
|
|
31
31
|
var import_provider_utils20 = require("@ai-sdk/provider-utils");
|
|
32
32
|
|
|
33
33
|
// src/version.ts
|
|
34
|
-
var VERSION = true ? "2.0.
|
|
34
|
+
var VERSION = true ? "2.0.36" : "0.0.0-test";
|
|
35
35
|
|
|
36
36
|
// src/anthropic-messages-language-model.ts
|
|
37
37
|
var import_provider3 = require("@ai-sdk/provider");
|
|
@@ -3087,7 +3087,12 @@ var anthropicTools = {
|
|
|
3087
3087
|
// src/anthropic-provider.ts
|
|
3088
3088
|
function createAnthropic(options = {}) {
|
|
3089
3089
|
var _a;
|
|
3090
|
-
const baseURL = (_a = (0, import_provider_utils20.withoutTrailingSlash)(
|
|
3090
|
+
const baseURL = (_a = (0, import_provider_utils20.withoutTrailingSlash)(
|
|
3091
|
+
(0, import_provider_utils20.loadOptionalSetting)({
|
|
3092
|
+
settingValue: options.baseURL,
|
|
3093
|
+
environmentVariableName: "ANTHROPIC_BASE_URL"
|
|
3094
|
+
})
|
|
3095
|
+
)) != null ? _a : "https://api.anthropic.com/v1";
|
|
3091
3096
|
const getHeaders = () => (0, import_provider_utils20.withUserAgentSuffix)(
|
|
3092
3097
|
{
|
|
3093
3098
|
"anthropic-version": "2023-06-01",
|