@ai-sdk/anthropic 2.0.88 → 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 +7 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -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 +10 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +8 -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({
|