@ai-sdk/anthropic 3.0.57 → 4.0.0-beta.0
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 +20 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +1 -0
- package/dist/internal/index.d.ts +1 -0
- package/dist/internal/index.js +2 -0
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +2 -0
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/anthropic-messages-api.ts +1 -0
- package/src/anthropic-prepare-tools.ts +4 -0
package/dist/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "@ai-sdk/provider-utils";
|
|
13
13
|
|
|
14
14
|
// src/version.ts
|
|
15
|
-
var VERSION = true ? "
|
|
15
|
+
var VERSION = true ? "4.0.0-beta.0" : "0.0.0-test";
|
|
16
16
|
|
|
17
17
|
// src/anthropic-messages-language-model.ts
|
|
18
18
|
import {
|
|
@@ -1301,6 +1301,7 @@ async function prepareTools({
|
|
|
1301
1301
|
canCache: true
|
|
1302
1302
|
});
|
|
1303
1303
|
const anthropicOptions = (_a = tool.providerOptions) == null ? void 0 : _a.anthropic;
|
|
1304
|
+
const eagerInputStreaming = anthropicOptions == null ? void 0 : anthropicOptions.eagerInputStreaming;
|
|
1304
1305
|
const deferLoading = anthropicOptions == null ? void 0 : anthropicOptions.deferLoading;
|
|
1305
1306
|
const allowedCallers = anthropicOptions == null ? void 0 : anthropicOptions.allowedCallers;
|
|
1306
1307
|
anthropicTools2.push({
|
|
@@ -1308,6 +1309,7 @@ async function prepareTools({
|
|
|
1308
1309
|
description: tool.description,
|
|
1309
1310
|
input_schema: tool.inputSchema,
|
|
1310
1311
|
cache_control: cacheControl,
|
|
1312
|
+
...eagerInputStreaming ? { eager_input_streaming: true } : {},
|
|
1311
1313
|
...supportsStructuredOutput === true && tool.strict != null ? { strict: tool.strict } : {},
|
|
1312
1314
|
...deferLoading != null ? { defer_loading: deferLoading } : {},
|
|
1313
1315
|
...allowedCallers != null ? { allowed_callers: allowedCallers } : {},
|