🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP →
Sign In

@ai-sdk/anthropic

Package Overview
Dependencies
Maintainers
3
Versions
549
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/anthropic - npm Package Compare versions

Comparing version
2.0.88
to
2.0.89
+7
-0
CHANGELOG.md
# @ai-sdk/anthropic
## 2.0.89
### Patch Changes
- 1b0e540: Use native structured output on supported Bedrock Anthropic models when thinking is enabled instead of forcing a JSON tool call.
- 5bb3ae4: Warn when an unknown model uses the default 4096 max output token limit.
## 2.0.88

@@ -4,0 +11,0 @@

+10
-1

@@ -710,2 +710,11 @@ import { LanguageModelV2, JSONSchema7, SharedV2ProviderMetadata, LanguageModelV2CallWarning, LanguageModelV2CallOptions } from '@ai-sdk/provider';

export { AnthropicMessagesLanguageModel, type AnthropicMessagesModelId, anthropicTools, prepareTools };
/**
* Removes JSON Schema keywords that Anthropic rejects in
* `output_config.format.schema`.
*
* The full original schema is still used by AI SDK result validation. This
* only relaxes the schema sent to Anthropic's constrained decoder.
*/
declare function sanitizeJsonSchema(schema: JSONSchema7): JSONSchema7;
export { AnthropicMessagesLanguageModel, type AnthropicMessagesModelId, anthropicTools, prepareTools, sanitizeJsonSchema };

@@ -710,2 +710,11 @@ import { LanguageModelV2, JSONSchema7, SharedV2ProviderMetadata, LanguageModelV2CallWarning, LanguageModelV2CallOptions } from '@ai-sdk/provider';

export { AnthropicMessagesLanguageModel, type AnthropicMessagesModelId, anthropicTools, prepareTools };
/**
* Removes JSON Schema keywords that Anthropic rejects in
* `output_config.format.schema`.
*
* The full original schema is still used by AI SDK result validation. This
* only relaxes the schema sent to Anthropic's constrained decoder.
*/
declare function sanitizeJsonSchema(schema: JSONSchema7): JSONSchema7;
export { AnthropicMessagesLanguageModel, type AnthropicMessagesModelId, anthropicTools, prepareTools, sanitizeJsonSchema };
+1
-1
{
"name": "@ai-sdk/anthropic",
"version": "2.0.88",
"version": "2.0.89",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "sideEffects": false,

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display