@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/package.json
CHANGED
|
@@ -279,6 +279,17 @@ export class AnthropicMessagesLanguageModel implements LanguageModelV3 {
|
|
|
279
279
|
isKnownModel,
|
|
280
280
|
} = getModelCapabilities(this.modelId);
|
|
281
281
|
|
|
282
|
+
if (!isKnownModel && maxOutputTokens == null) {
|
|
283
|
+
warnings.push({
|
|
284
|
+
type: 'compatibility',
|
|
285
|
+
feature: 'maxOutputTokens',
|
|
286
|
+
details:
|
|
287
|
+
`The model "${this.modelId}" is unknown. ` +
|
|
288
|
+
`The max output tokens have been limited to ${maxOutputTokensForModel}. ` +
|
|
289
|
+
`Set maxOutputTokens explicitly to override this limit.`,
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
|
|
282
293
|
if (rejectsSamplingParameters) {
|
|
283
294
|
if (temperature != null) {
|
|
284
295
|
warnings.push({
|