@ai-sdk/anthropic 2.0.87 → 2.0.89
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 +13 -0
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +10 -1
- package/dist/internal/index.d.ts +10 -1
- package/dist/internal/index.js +17 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +15 -1
- 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.89" : "0.0.0-test";
|
|
15
15
|
|
|
16
16
|
// src/anthropic-messages-language-model.ts
|
|
17
17
|
import {
|
|
@@ -2294,6 +2294,12 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
2294
2294
|
rejectsSamplingParameters,
|
|
2295
2295
|
isKnownModel
|
|
2296
2296
|
} = getModelCapabilities(this.modelId);
|
|
2297
|
+
if (!isKnownModel && maxOutputTokens == null) {
|
|
2298
|
+
warnings.push({
|
|
2299
|
+
type: "other",
|
|
2300
|
+
message: `The model "${this.modelId}" is unknown. The max output tokens have been limited to ${maxOutputTokensForModel}. Set maxOutputTokens explicitly to override this limit.`
|
|
2301
|
+
});
|
|
2302
|
+
}
|
|
2297
2303
|
if (rejectsSamplingParameters) {
|
|
2298
2304
|
if (temperature != null) {
|
|
2299
2305
|
warnings.push({
|
|
@@ -2329,6 +2335,13 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
2329
2335
|
description: "Respond with a JSON object.",
|
|
2330
2336
|
inputSchema: responseFormat.schema
|
|
2331
2337
|
} : void 0;
|
|
2338
|
+
if (jsonResponseTool != null && (anthropicOptions == null ? void 0 : anthropicOptions.disableParallelToolUse) === false) {
|
|
2339
|
+
warnings.push({
|
|
2340
|
+
type: "unsupported-setting",
|
|
2341
|
+
setting: "providerOptions",
|
|
2342
|
+
details: "`disableParallelToolUse: false` is ignored when using the JSON response tool. Parallel tool use is disabled to ensure a single coherent JSON tool call."
|
|
2343
|
+
});
|
|
2344
|
+
}
|
|
2332
2345
|
const cacheControlValidator = new CacheControlValidator();
|
|
2333
2346
|
const { prompt: messagesPrompt, betas } = await convertToAnthropicMessagesPrompt({
|
|
2334
2347
|
prompt,
|