@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.js
CHANGED
|
@@ -2297,6 +2297,13 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
2297
2297
|
description: "Respond with a JSON object.",
|
|
2298
2298
|
inputSchema: responseFormat.schema
|
|
2299
2299
|
} : void 0;
|
|
2300
|
+
if (jsonResponseTool != null && (anthropicOptions == null ? void 0 : anthropicOptions.disableParallelToolUse) === false) {
|
|
2301
|
+
warnings.push({
|
|
2302
|
+
type: "unsupported-setting",
|
|
2303
|
+
setting: "providerOptions",
|
|
2304
|
+
details: "`disableParallelToolUse: false` is ignored when using the JSON response tool. Parallel tool use is disabled to ensure a single coherent JSON tool call."
|
|
2305
|
+
});
|
|
2306
|
+
}
|
|
2300
2307
|
const cacheControlValidator = new CacheControlValidator();
|
|
2301
2308
|
const { prompt: messagesPrompt, betas } = await convertToAnthropicMessagesPrompt({
|
|
2302
2309
|
prompt,
|