@ai-sdk/anthropic
Advanced tools
+6
-0
| # @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 @@ |
@@ -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
3268434
0.23%34893
0.27%