@ai-sdk/anthropic 4.0.17 → 4.0.18
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/internal/index.js +7 -0
- package/dist/internal/index.js.map +1 -1
- package/package.json +1 -1
- package/src/anthropic-language-model.ts +11 -0
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -3628,6 +3628,13 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
3628
3628
|
supportsXhighEffort,
|
|
3629
3629
|
isKnownModel
|
|
3630
3630
|
} = getModelCapabilities(this.modelId);
|
|
3631
|
+
if (!isKnownModel && maxOutputTokens == null) {
|
|
3632
|
+
warnings.push({
|
|
3633
|
+
type: "compatibility",
|
|
3634
|
+
feature: "maxOutputTokens",
|
|
3635
|
+
details: `The model "${this.modelId}" is unknown. The max output tokens have been limited to ${maxOutputTokensForModel}. Set maxOutputTokens explicitly to override this limit.`
|
|
3636
|
+
});
|
|
3637
|
+
}
|
|
3631
3638
|
if (rejectsSamplingParameters) {
|
|
3632
3639
|
if (temperature != null) {
|
|
3633
3640
|
warnings.push({
|
|
@@ -6340,7 +6347,7 @@ var AnthropicSkills = class {
|
|
|
6340
6347
|
};
|
|
6341
6348
|
|
|
6342
6349
|
// src/version.ts
|
|
6343
|
-
var VERSION = true ? "4.0.
|
|
6350
|
+
var VERSION = true ? "4.0.18" : "0.0.0-test";
|
|
6344
6351
|
|
|
6345
6352
|
// src/anthropic-provider.ts
|
|
6346
6353
|
var ANTHROPIC_API_URL = "https://api.anthropic.com";
|