@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/internal/index.mjs
CHANGED
|
@@ -2314,6 +2314,13 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
2314
2314
|
description: "Respond with a JSON object.",
|
|
2315
2315
|
inputSchema: responseFormat.schema
|
|
2316
2316
|
} : void 0;
|
|
2317
|
+
if (jsonResponseTool != null && (anthropicOptions == null ? void 0 : anthropicOptions.disableParallelToolUse) === false) {
|
|
2318
|
+
warnings.push({
|
|
2319
|
+
type: "unsupported-setting",
|
|
2320
|
+
setting: "providerOptions",
|
|
2321
|
+
details: "`disableParallelToolUse: false` is ignored when using the JSON response tool. Parallel tool use is disabled to ensure a single coherent JSON tool call."
|
|
2322
|
+
});
|
|
2323
|
+
}
|
|
2317
2324
|
const cacheControlValidator = new CacheControlValidator();
|
|
2318
2325
|
const { prompt: messagesPrompt, betas } = await convertToAnthropicMessagesPrompt({
|
|
2319
2326
|
prompt,
|