@ai-sdk/anthropic 2.0.87 → 2.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 +6 -0
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +7 -0
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +7 -0
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "@ai-sdk/provider-utils";
|
|
12
12
|
|
|
13
13
|
// src/version.ts
|
|
14
|
-
var VERSION = true ? "2.0.
|
|
14
|
+
var VERSION = true ? "2.0.88" : "0.0.0-test";
|
|
15
15
|
|
|
16
16
|
// src/anthropic-messages-language-model.ts
|
|
17
17
|
import {
|
|
@@ -2329,6 +2329,13 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
2329
2329
|
description: "Respond with a JSON object.",
|
|
2330
2330
|
inputSchema: responseFormat.schema
|
|
2331
2331
|
} : void 0;
|
|
2332
|
+
if (jsonResponseTool != null && (anthropicOptions == null ? void 0 : anthropicOptions.disableParallelToolUse) === false) {
|
|
2333
|
+
warnings.push({
|
|
2334
|
+
type: "unsupported-setting",
|
|
2335
|
+
setting: "providerOptions",
|
|
2336
|
+
details: "`disableParallelToolUse: false` is ignored when using the JSON response tool. Parallel tool use is disabled to ensure a single coherent JSON tool call."
|
|
2337
|
+
});
|
|
2338
|
+
}
|
|
2332
2339
|
const cacheControlValidator = new CacheControlValidator();
|
|
2333
2340
|
const { prompt: messagesPrompt, betas } = await convertToAnthropicMessagesPrompt({
|
|
2334
2341
|
prompt,
|