@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/internal/index.mjs
CHANGED
|
@@ -2279,6 +2279,12 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
2279
2279
|
rejectsSamplingParameters,
|
|
2280
2280
|
isKnownModel
|
|
2281
2281
|
} = getModelCapabilities(this.modelId);
|
|
2282
|
+
if (!isKnownModel && maxOutputTokens == null) {
|
|
2283
|
+
warnings.push({
|
|
2284
|
+
type: "other",
|
|
2285
|
+
message: `The model "${this.modelId}" is unknown. The max output tokens have been limited to ${maxOutputTokensForModel}. Set maxOutputTokens explicitly to override this limit.`
|
|
2286
|
+
});
|
|
2287
|
+
}
|
|
2282
2288
|
if (rejectsSamplingParameters) {
|
|
2283
2289
|
if (temperature != null) {
|
|
2284
2290
|
warnings.push({
|
|
@@ -4181,6 +4187,7 @@ var anthropicTools = {
|
|
|
4181
4187
|
export {
|
|
4182
4188
|
AnthropicMessagesLanguageModel,
|
|
4183
4189
|
anthropicTools,
|
|
4184
|
-
prepareTools
|
|
4190
|
+
prepareTools,
|
|
4191
|
+
sanitizeJsonSchema
|
|
4185
4192
|
};
|
|
4186
4193
|
//# sourceMappingURL=index.mjs.map
|