@ai-sdk/anthropic 3.0.99 → 3.0.100
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/src/anthropic-messages-language-model.ts +11 -0
package/dist/internal/index.mjs
CHANGED
|
@@ -3431,6 +3431,13 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
3431
3431
|
rejectsSamplingParameters,
|
|
3432
3432
|
isKnownModel
|
|
3433
3433
|
} = getModelCapabilities(this.modelId);
|
|
3434
|
+
if (!isKnownModel && maxOutputTokens == null) {
|
|
3435
|
+
warnings.push({
|
|
3436
|
+
type: "compatibility",
|
|
3437
|
+
feature: "maxOutputTokens",
|
|
3438
|
+
details: `The model "${this.modelId}" is unknown. The max output tokens have been limited to ${maxOutputTokensForModel}. Set maxOutputTokens explicitly to override this limit.`
|
|
3439
|
+
});
|
|
3440
|
+
}
|
|
3434
3441
|
if (rejectsSamplingParameters) {
|
|
3435
3442
|
if (temperature != null) {
|
|
3436
3443
|
warnings.push({
|