🎩 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
545
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
3.0.100
to
3.0.101
+6
-0
CHANGELOG.md
# @ai-sdk/anthropic
## 3.0.101
### Patch Changes
- 0608dca: fix (provider/anthropic): use current-generation capability defaults for unrecognized Claude model IDs while retaining conservative defaults for legacy Claude and non-Claude models.
## 3.0.100

@@ -4,0 +10,0 @@

+13
-1

@@ -49,2 +49,14 @@ import { LanguageModelV3, LanguageModelV3CallOptions, LanguageModelV3GenerateResult, LanguageModelV3StreamResult, JSONSchema7, SharedV3ProviderMetadata, SharedV3Warning } from '@ai-sdk/provider';

}
/**
* Returns the capabilities of a Claude model that are used for defaults and feature selection.
*
* @see https://docs.claude.com/en/docs/about-claude/models/overview#model-comparison-table
* @see https://platform.claude.com/docs/en/build-with-claude/structured-outputs
*/
declare function getModelCapabilities(modelId: string): {
maxOutputTokens: number;
supportsStructuredOutput: boolean;
rejectsSamplingParameters: boolean;
isKnownModel: boolean;
};

@@ -1047,2 +1059,2 @@ declare const anthropicTools: {

export { AnthropicMessagesLanguageModel, type AnthropicMessagesModelId, anthropicTools, prepareTools, sanitizeJsonSchema };
export { AnthropicMessagesLanguageModel, type AnthropicMessagesModelId, anthropicTools, getModelCapabilities, prepareTools, sanitizeJsonSchema };

@@ -49,2 +49,14 @@ import { LanguageModelV3, LanguageModelV3CallOptions, LanguageModelV3GenerateResult, LanguageModelV3StreamResult, JSONSchema7, SharedV3ProviderMetadata, SharedV3Warning } from '@ai-sdk/provider';

}
/**
* Returns the capabilities of a Claude model that are used for defaults and feature selection.
*
* @see https://docs.claude.com/en/docs/about-claude/models/overview#model-comparison-table
* @see https://platform.claude.com/docs/en/build-with-claude/structured-outputs
*/
declare function getModelCapabilities(modelId: string): {
maxOutputTokens: number;
supportsStructuredOutput: boolean;
rejectsSamplingParameters: boolean;
isKnownModel: boolean;
};

@@ -1047,2 +1059,2 @@ declare const anthropicTools: {

export { AnthropicMessagesLanguageModel, type AnthropicMessagesModelId, anthropicTools, prepareTools, sanitizeJsonSchema };
export { AnthropicMessagesLanguageModel, type AnthropicMessagesModelId, anthropicTools, getModelCapabilities, prepareTools, sanitizeJsonSchema };
+1
-1
{
"name": "@ai-sdk/anthropic",
"version": "3.0.100",
"version": "3.0.101",
"license": "Apache-2.0",

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

@@ -1,2 +0,5 @@

export { AnthropicMessagesLanguageModel } from '../anthropic-messages-language-model';
export {
AnthropicMessagesLanguageModel,
getModelCapabilities,
} from '../anthropic-messages-language-model';
export { anthropicTools } from '../anthropic-tools';

@@ -3,0 +6,0 @@ export type { AnthropicMessagesModelId } from '../anthropic-messages-options';

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

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