@ai-sdk/anthropic 4.0.103 → 4.0.105
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 +14 -0
- package/dist/index.d.ts +109 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -3
- package/dist/index.js.map +1 -1
- package/dist/internal/index.d.ts +234 -131
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +9 -2
- package/dist/internal/index.js.map +1 -1
- package/docs/05-anthropic.mdx +40 -0
- package/package.json +2 -2
- package/src/anthropic-language-model-options.ts +2 -27
- package/src/anthropic-model-catalog.ts +21 -6
- package/src/anthropic-provider.ts +11 -0
package/dist/internal/index.d.ts
CHANGED
|
@@ -846,8 +846,241 @@ type Citation = NonNullable<(InferSchema<typeof anthropicResponseSchema>['conten
|
|
|
846
846
|
type: 'text';
|
|
847
847
|
})['citations']>[number];
|
|
848
848
|
//#endregion
|
|
849
|
+
//#region src/anthropic-model-catalog.d.ts
|
|
850
|
+
type AnthropicLanguageProviderOption = keyof AnthropicLanguageModelOptions;
|
|
851
|
+
/**
|
|
852
|
+
* Options accepted under `providerOptions.anthropic`. The `satisfies` check
|
|
853
|
+
* keeps this list in sync with the option schema.
|
|
854
|
+
*/
|
|
855
|
+
export declare const anthropicProviderOptions: {
|
|
856
|
+
readonly language: {
|
|
857
|
+
thread: {
|
|
858
|
+
description: string;
|
|
859
|
+
};
|
|
860
|
+
sendReasoning: {
|
|
861
|
+
description: string;
|
|
862
|
+
};
|
|
863
|
+
includePings: {
|
|
864
|
+
description: string;
|
|
865
|
+
};
|
|
866
|
+
structuredOutputMode: {
|
|
867
|
+
description: string;
|
|
868
|
+
};
|
|
869
|
+
thinking: {
|
|
870
|
+
description: string;
|
|
871
|
+
};
|
|
872
|
+
disableParallelToolUse: {
|
|
873
|
+
description: string;
|
|
874
|
+
};
|
|
875
|
+
cacheControl: {
|
|
876
|
+
description: string;
|
|
877
|
+
};
|
|
878
|
+
metadata: {
|
|
879
|
+
description: string;
|
|
880
|
+
};
|
|
881
|
+
mcpServers: {
|
|
882
|
+
description: string;
|
|
883
|
+
};
|
|
884
|
+
container: {
|
|
885
|
+
description: string;
|
|
886
|
+
};
|
|
887
|
+
toolStreaming: {
|
|
888
|
+
description: string;
|
|
889
|
+
};
|
|
890
|
+
effort: {
|
|
891
|
+
description: string;
|
|
892
|
+
};
|
|
893
|
+
taskBudget: {
|
|
894
|
+
description: string;
|
|
895
|
+
};
|
|
896
|
+
speed: {
|
|
897
|
+
description: string;
|
|
898
|
+
};
|
|
899
|
+
serviceTier: {
|
|
900
|
+
description: string;
|
|
901
|
+
};
|
|
902
|
+
inferenceGeo: {
|
|
903
|
+
description: string;
|
|
904
|
+
};
|
|
905
|
+
fallbacks: {
|
|
906
|
+
description: string;
|
|
907
|
+
};
|
|
908
|
+
anthropicBeta: {
|
|
909
|
+
description: string;
|
|
910
|
+
};
|
|
911
|
+
safeguards: {
|
|
912
|
+
description: string;
|
|
913
|
+
};
|
|
914
|
+
compaction: {
|
|
915
|
+
description: string;
|
|
916
|
+
};
|
|
917
|
+
contextManagement: {
|
|
918
|
+
description: string;
|
|
919
|
+
};
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
type AnthropicLanguageCapabilities = NonNullable<ModelCapabilities['language']> & {
|
|
923
|
+
tools: NonNullable<ModelCapabilities['language']>['tools'] & {
|
|
924
|
+
forcedChoice: boolean;
|
|
925
|
+
computerUse: ModelCapability;
|
|
926
|
+
webSearch: ModelCapability;
|
|
927
|
+
toolSearch: ModelCapability;
|
|
928
|
+
};
|
|
929
|
+
reasoning: NonNullable<ModelCapabilities['language']>['reasoning'] & {
|
|
930
|
+
adaptive: boolean;
|
|
931
|
+
budget: boolean;
|
|
932
|
+
canDisable: boolean;
|
|
933
|
+
canDisableAboveHighEffort: boolean;
|
|
934
|
+
supportsXhighEffort: boolean;
|
|
935
|
+
betweenTools: boolean;
|
|
936
|
+
};
|
|
937
|
+
sampling: NonNullable<ModelCapabilities['language']>['sampling'] & {
|
|
938
|
+
topK: ModelCapability;
|
|
939
|
+
};
|
|
940
|
+
structuredOutput: {
|
|
941
|
+
native: boolean;
|
|
942
|
+
};
|
|
943
|
+
compaction: ModelCapability;
|
|
944
|
+
};
|
|
945
|
+
type AnthropicLanguageRequestConfig = {
|
|
946
|
+
maxOutputTokens: number;
|
|
947
|
+
knownModel: boolean;
|
|
948
|
+
};
|
|
949
|
+
type AnthropicLanguageModelEntry = ModelEntry<{
|
|
950
|
+
language: AnthropicLanguageRequestConfig;
|
|
951
|
+
}> & {
|
|
952
|
+
capabilities: {
|
|
953
|
+
language: AnthropicLanguageCapabilities;
|
|
954
|
+
};
|
|
955
|
+
providerOptions: {
|
|
956
|
+
language: Record<AnthropicLanguageProviderOption, ModelCapability>;
|
|
957
|
+
};
|
|
958
|
+
requestConfig: {
|
|
959
|
+
language: AnthropicLanguageRequestConfig;
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
declare const languageModelDefinitions: {
|
|
963
|
+
'claude-opus-5-5': {
|
|
964
|
+
toolSearch: true;
|
|
965
|
+
compaction: true;
|
|
966
|
+
effort: true;
|
|
967
|
+
};
|
|
968
|
+
'claude-opus-5': {
|
|
969
|
+
toolSearch: true;
|
|
970
|
+
compaction: true;
|
|
971
|
+
effort: true;
|
|
972
|
+
};
|
|
973
|
+
'claude-sonnet-5-5': {
|
|
974
|
+
toolSearch: true;
|
|
975
|
+
compaction: true;
|
|
976
|
+
effort: true;
|
|
977
|
+
};
|
|
978
|
+
'claude-sonnet-5': {
|
|
979
|
+
toolSearch: true;
|
|
980
|
+
compaction: true;
|
|
981
|
+
effort: true;
|
|
982
|
+
};
|
|
983
|
+
'claude-haiku-5-5': {
|
|
984
|
+
toolSearch: true;
|
|
985
|
+
compaction: true;
|
|
986
|
+
effort: true;
|
|
987
|
+
};
|
|
988
|
+
'claude-fable-5-2': {
|
|
989
|
+
toolSearch: true;
|
|
990
|
+
compaction: true;
|
|
991
|
+
effort: true;
|
|
992
|
+
};
|
|
993
|
+
'claude-fable-5-1': {
|
|
994
|
+
toolSearch: true;
|
|
995
|
+
compaction: true;
|
|
996
|
+
effort: true;
|
|
997
|
+
};
|
|
998
|
+
'claude-fable-5': {
|
|
999
|
+
toolSearch: true;
|
|
1000
|
+
compaction: true;
|
|
1001
|
+
effort: true;
|
|
1002
|
+
};
|
|
1003
|
+
'claude-opus-4-8': {
|
|
1004
|
+
toolSearch: true;
|
|
1005
|
+
compaction: true;
|
|
1006
|
+
effort: true;
|
|
1007
|
+
};
|
|
1008
|
+
'claude-opus-4-7': {
|
|
1009
|
+
toolSearch: true;
|
|
1010
|
+
compaction: true;
|
|
1011
|
+
effort: true;
|
|
1012
|
+
};
|
|
1013
|
+
'claude-opus-4-6': {
|
|
1014
|
+
toolSearch: true;
|
|
1015
|
+
compaction: true;
|
|
1016
|
+
effort: true;
|
|
1017
|
+
};
|
|
1018
|
+
'claude-sonnet-4-6': {
|
|
1019
|
+
toolSearch: true;
|
|
1020
|
+
compaction: true;
|
|
1021
|
+
effort: true;
|
|
1022
|
+
};
|
|
1023
|
+
'claude-opus-4-5': {
|
|
1024
|
+
toolSearch: true;
|
|
1025
|
+
compaction: false;
|
|
1026
|
+
effort: true;
|
|
1027
|
+
};
|
|
1028
|
+
'claude-haiku-4-5': {
|
|
1029
|
+
toolSearch: true;
|
|
1030
|
+
compaction: false;
|
|
1031
|
+
effort: false;
|
|
1032
|
+
};
|
|
1033
|
+
'claude-sonnet-4-5': {
|
|
1034
|
+
toolSearch: true;
|
|
1035
|
+
compaction: false;
|
|
1036
|
+
effort: false;
|
|
1037
|
+
};
|
|
1038
|
+
'claude-opus-4-1': {
|
|
1039
|
+
toolSearch: false;
|
|
1040
|
+
compaction: false;
|
|
1041
|
+
effort: false;
|
|
1042
|
+
};
|
|
1043
|
+
'claude-opus-4-0': {
|
|
1044
|
+
toolSearch: false;
|
|
1045
|
+
compaction: false;
|
|
1046
|
+
effort: false;
|
|
1047
|
+
};
|
|
1048
|
+
'claude-sonnet-4-0': {
|
|
1049
|
+
toolSearch: false;
|
|
1050
|
+
compaction: false;
|
|
1051
|
+
effort: false;
|
|
1052
|
+
};
|
|
1053
|
+
'claude-3-haiku-20240307': undefined;
|
|
1054
|
+
'claude-haiku-4-5-20251001': undefined;
|
|
1055
|
+
'claude-opus-4-1-20250805': undefined;
|
|
1056
|
+
'claude-opus-4-20250514': undefined;
|
|
1057
|
+
'claude-opus-4-5-20251101': undefined;
|
|
1058
|
+
'claude-sonnet-4-20250514': undefined;
|
|
1059
|
+
'claude-sonnet-4-5-20250929': undefined;
|
|
1060
|
+
};
|
|
1061
|
+
export declare const anthropicModelCatalog: Readonly<Record<string, AnthropicLanguageModelEntry>>;
|
|
1062
|
+
export declare function getAnthropicLanguageModelEntry(modelId: string): AnthropicLanguageModelEntry;
|
|
1063
|
+
/** Compatibility projection for the provider's existing request preparation. */
|
|
1064
|
+
declare function getAnthropicModelCapabilities(modelId: string): {
|
|
1065
|
+
maxOutputTokens: number;
|
|
1066
|
+
supportsStructuredOutput: boolean;
|
|
1067
|
+
supportsAdaptiveThinking: boolean;
|
|
1068
|
+
rejectsSamplingParameters: boolean;
|
|
1069
|
+
supportsXhighEffort: boolean;
|
|
1070
|
+
rejectsThinkingDisabledAboveHighEffort: boolean;
|
|
1071
|
+
rejectsThinkingDisabled: boolean;
|
|
1072
|
+
rejectsBudgetThinking: boolean;
|
|
1073
|
+
rejectsForcedToolUse: boolean;
|
|
1074
|
+
supportsBetweenToolsThinking: boolean;
|
|
1075
|
+
isKnownModel: boolean;
|
|
1076
|
+
};
|
|
1077
|
+
/** Known model IDs, derived from the declarations used to build the catalog. */
|
|
1078
|
+
type AnthropicModelIds = {
|
|
1079
|
+
language: keyof typeof languageModelDefinitions;
|
|
1080
|
+
};
|
|
1081
|
+
//#endregion
|
|
849
1082
|
//#region src/anthropic-language-model-options.d.ts
|
|
850
|
-
type AnthropicModelId = '
|
|
1083
|
+
type AnthropicModelId = AnthropicModelIds['language'] | (string & {});
|
|
851
1084
|
declare const anthropicLanguageModelOptions: import("@ai-sdk/provider-utils").LazySchema<{
|
|
852
1085
|
thread?: {
|
|
853
1086
|
type: "create";
|
|
@@ -989,136 +1222,6 @@ declare class CacheControlValidator {
|
|
|
989
1222
|
/** Return undefined to use the default file conversion. */
|
|
990
1223
|
type AnthropicMediaPartConverter = (part: LanguageModelV4FilePart) => PromiseLike<Omit<AnthropicImageContent | AnthropicVideoContent, 'cache_control'> | undefined>;
|
|
991
1224
|
//#endregion
|
|
992
|
-
//#region src/anthropic-model-catalog.d.ts
|
|
993
|
-
type AnthropicLanguageProviderOption = keyof AnthropicLanguageModelOptions;
|
|
994
|
-
/**
|
|
995
|
-
* Options accepted under `providerOptions.anthropic`. The `satisfies` check
|
|
996
|
-
* keeps this list in sync with the option schema.
|
|
997
|
-
*/
|
|
998
|
-
export declare const anthropicProviderOptions: {
|
|
999
|
-
readonly language: {
|
|
1000
|
-
thread: {
|
|
1001
|
-
description: string;
|
|
1002
|
-
};
|
|
1003
|
-
sendReasoning: {
|
|
1004
|
-
description: string;
|
|
1005
|
-
};
|
|
1006
|
-
includePings: {
|
|
1007
|
-
description: string;
|
|
1008
|
-
};
|
|
1009
|
-
structuredOutputMode: {
|
|
1010
|
-
description: string;
|
|
1011
|
-
};
|
|
1012
|
-
thinking: {
|
|
1013
|
-
description: string;
|
|
1014
|
-
};
|
|
1015
|
-
disableParallelToolUse: {
|
|
1016
|
-
description: string;
|
|
1017
|
-
};
|
|
1018
|
-
cacheControl: {
|
|
1019
|
-
description: string;
|
|
1020
|
-
};
|
|
1021
|
-
metadata: {
|
|
1022
|
-
description: string;
|
|
1023
|
-
};
|
|
1024
|
-
mcpServers: {
|
|
1025
|
-
description: string;
|
|
1026
|
-
};
|
|
1027
|
-
container: {
|
|
1028
|
-
description: string;
|
|
1029
|
-
};
|
|
1030
|
-
toolStreaming: {
|
|
1031
|
-
description: string;
|
|
1032
|
-
};
|
|
1033
|
-
effort: {
|
|
1034
|
-
description: string;
|
|
1035
|
-
};
|
|
1036
|
-
taskBudget: {
|
|
1037
|
-
description: string;
|
|
1038
|
-
};
|
|
1039
|
-
speed: {
|
|
1040
|
-
description: string;
|
|
1041
|
-
};
|
|
1042
|
-
serviceTier: {
|
|
1043
|
-
description: string;
|
|
1044
|
-
};
|
|
1045
|
-
inferenceGeo: {
|
|
1046
|
-
description: string;
|
|
1047
|
-
};
|
|
1048
|
-
fallbacks: {
|
|
1049
|
-
description: string;
|
|
1050
|
-
};
|
|
1051
|
-
anthropicBeta: {
|
|
1052
|
-
description: string;
|
|
1053
|
-
};
|
|
1054
|
-
safeguards: {
|
|
1055
|
-
description: string;
|
|
1056
|
-
};
|
|
1057
|
-
compaction: {
|
|
1058
|
-
description: string;
|
|
1059
|
-
};
|
|
1060
|
-
contextManagement: {
|
|
1061
|
-
description: string;
|
|
1062
|
-
};
|
|
1063
|
-
};
|
|
1064
|
-
};
|
|
1065
|
-
type AnthropicLanguageCapabilities = NonNullable<ModelCapabilities['language']> & {
|
|
1066
|
-
tools: NonNullable<ModelCapabilities['language']>['tools'] & {
|
|
1067
|
-
forcedChoice: boolean;
|
|
1068
|
-
computerUse: ModelCapability;
|
|
1069
|
-
webSearch: ModelCapability;
|
|
1070
|
-
toolSearch: ModelCapability;
|
|
1071
|
-
};
|
|
1072
|
-
reasoning: NonNullable<ModelCapabilities['language']>['reasoning'] & {
|
|
1073
|
-
adaptive: boolean;
|
|
1074
|
-
budget: boolean;
|
|
1075
|
-
canDisable: boolean;
|
|
1076
|
-
canDisableAboveHighEffort: boolean;
|
|
1077
|
-
supportsXhighEffort: boolean;
|
|
1078
|
-
betweenTools: boolean;
|
|
1079
|
-
};
|
|
1080
|
-
sampling: NonNullable<ModelCapabilities['language']>['sampling'] & {
|
|
1081
|
-
topK: ModelCapability;
|
|
1082
|
-
};
|
|
1083
|
-
structuredOutput: {
|
|
1084
|
-
native: boolean;
|
|
1085
|
-
};
|
|
1086
|
-
compaction: ModelCapability;
|
|
1087
|
-
};
|
|
1088
|
-
type AnthropicLanguageRequestConfig = {
|
|
1089
|
-
maxOutputTokens: number;
|
|
1090
|
-
knownModel: boolean;
|
|
1091
|
-
};
|
|
1092
|
-
type AnthropicLanguageModelEntry = ModelEntry<{
|
|
1093
|
-
language: AnthropicLanguageRequestConfig;
|
|
1094
|
-
}> & {
|
|
1095
|
-
capabilities: {
|
|
1096
|
-
language: AnthropicLanguageCapabilities;
|
|
1097
|
-
};
|
|
1098
|
-
providerOptions: {
|
|
1099
|
-
language: Record<AnthropicLanguageProviderOption, ModelCapability>;
|
|
1100
|
-
};
|
|
1101
|
-
requestConfig: {
|
|
1102
|
-
language: AnthropicLanguageRequestConfig;
|
|
1103
|
-
};
|
|
1104
|
-
};
|
|
1105
|
-
export declare const anthropicModelCatalog: Readonly<Record<string, AnthropicLanguageModelEntry>>;
|
|
1106
|
-
export declare function getAnthropicLanguageModelEntry(modelId: string): AnthropicLanguageModelEntry;
|
|
1107
|
-
/** Compatibility projection for the provider's existing request preparation. */
|
|
1108
|
-
declare function getAnthropicModelCapabilities(modelId: string): {
|
|
1109
|
-
maxOutputTokens: number;
|
|
1110
|
-
supportsStructuredOutput: boolean;
|
|
1111
|
-
supportsAdaptiveThinking: boolean;
|
|
1112
|
-
rejectsSamplingParameters: boolean;
|
|
1113
|
-
supportsXhighEffort: boolean;
|
|
1114
|
-
rejectsThinkingDisabledAboveHighEffort: boolean;
|
|
1115
|
-
rejectsThinkingDisabled: boolean;
|
|
1116
|
-
rejectsBudgetThinking: boolean;
|
|
1117
|
-
rejectsForcedToolUse: boolean;
|
|
1118
|
-
supportsBetweenToolsThinking: boolean;
|
|
1119
|
-
isKnownModel: boolean;
|
|
1120
|
-
};
|
|
1121
|
-
//#endregion
|
|
1122
1225
|
//#region src/anthropic-language-model.d.ts
|
|
1123
1226
|
type AnthropicLanguageModelConfig = {
|
|
1124
1227
|
provider: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["_$__anthropic_api0.AnthropicToolChoice","_$__anthropic_api0.AnthropicMessage","_$__anthropic_api0.AnthropicTextContent","SandboxSession","SandboxSession","_$__tool_computer_toolset_202608010.ComputerToolset_20260801Member"],"sources":["../../src/files/anthropic-files.ts","../../src/anthropic-api.ts","../../src/anthropic-language-model-options.ts","../../src/get-cache-control.ts","../../src/convert-to-anthropic-prompt.ts","../../src/anthropic-
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["_$__anthropic_api0.AnthropicToolChoice","_$__anthropic_api0.AnthropicMessage","_$__anthropic_api0.AnthropicTextContent","SandboxSession","SandboxSession","_$__tool_computer_toolset_202608010.ComputerToolset_20260801Member"],"sources":["../../src/files/anthropic-files.ts","../../src/anthropic-api.ts","../../src/anthropic-model-catalog.ts","../../src/anthropic-language-model-options.ts","../../src/get-cache-control.ts","../../src/convert-to-anthropic-prompt.ts","../../src/anthropic-language-model.ts","../../src/tool/computer-toolset_20260801.ts","../../src/tool/bash_20241022.ts","../../src/tool/bash_20250124.ts","../../src/anthropic-tools.ts","../../src/anthropic-prepare-tools.ts","../../src/sanitize-json-schema.ts","../../src/supports-native-structured-output-schema.ts","../../src/skills/anthropic-skills.ts"],"mappings":";;;;UAiCU;EACR;EACA;EACA,SAAS,WAAW;EACpB,QAAQ;;qBAGG,0BAA0B;mBAOR;WANpB;MAEL;EAIyB,YAAA,QAAQ;UAE7B;UAWM;EAUR,aACJ,MACA,WACA,UACA,aACA,WACC,+BAA+B,QAAQ;EAwCpC,aACJ,MACA,aACA,WACC,+BAA+B,QAAQ;EAmBpC,kBACJ,MACA,aACA,WACC,oCAAoC,QAAQ;UA4BvC;EAqBF,eACJ,MACA,aACA,WACC,iCAAiC,QAAQ;;;;KCvLlC,mBACR,uBACA,4BACA;KAEQ;EACV;EACA;;UAGe;EACf;EACA,SAAS,MAAM,uBAAuB;EACtC;EACA;IACE;;;;;;;;;;;;KAaQ;EAEN;EACA;IAAQ;IAAwB;;EAChC;;EAGA;;;;;;EAMA;IAAQ;IAAyB,YAAY;;EAC7C;;UAGW;EACf;EACA,SAAS,MACL,uBACA,wBACA,wBACA,2BACA,kCACA;;UAIW;EACf;EACA,SAAS,MACL,uBACA,2BACA,mCACA,2BACA,2BACA,gCACA,0CACA,qCACA,sCACA,uCACA,8CACA,oDACA,oCACA,6BACA,gCACA;;cAIO,sCAA8B,EAAA;;;;;;;;GAKvC,EAAA,KAAA;KAKQ,2BAA2B,YACrC,kBAAkB;EAElB;;UAGe;EACf;EACA;EACA;EACA,gBAAgB;;UAGD;EACf;EACA;EACA,YAAY;EACZ,eAAe;;UAGA;EACf;EACA;EACA;EAGA;;UAGe;EACf;EACA;EAGA;;KAGG;EAEC;EACA;EACA;;EAGA;EACA;;EAGA;EACA;EACA;;EAGA;EACA;;UAGW;EACf;EACA,QAAQ;EACR,eAAe;;;UAIA;EACf;EACA,QAAQ;EACR,eAAe;;UAGA;EACf;EACA,QAAQ;EACR;EACA;EACA;IAAc;;EACd,eAAe;;UAGA;EACf;EACA;EACA;;;;;;KAOU;EAEN;EACA;;EAGA;EACA;;EAGA;;UAGW;EACf;EACA;EACA;EACA;;;;;EAKA,SAAS;;;;;EAKT;EACA,eAAe;;UAGA;EACf;EACA;EACA;EAaA;EACA,SAAS;EACT,eAAe;;KAKZ,6BAA6B,KAChC;EAGA;;KAGG,8BAA8B,KACjC;EAGA;;KAGG,iCAAiC,KACpC;EAGA;;UAGe;EACf;EACA;;UAGe;EACf;EACA;;;;EAIA;EACA,kBAEI,MACI,6BACA,8BACA,iCACA;EAER;EACA,eAAe;;UAGA;EACf;EACA;EACA,SACI;IACE;IACA;IACA;IACA;IACA;;IAGA;IACA;;EAEN,SAAS;EACT,eAAe;;UAGA;EACf;EACA;EACA;IAEM;IACA,iBAAiB;MACf;MACA;;;IAIF;IACA;;EAEN,eAAe;;UAIA;EACf;EACA;EACA;IAEM;IACA;IACA;IACA;IACA,SAAS;MAAQ;MAA+B;;;IAGhD;IACA;IACA;IACA;IACA,SAAS;MAAQ;MAA+B;;;IAGhD;IACA;;EAEN,eAAe;;UAIA;EACf;EACA;EACA;IAEM;IACA;;IAGA;IACA;;IAGA;IACA;IACA;IACA;IACA;IACA;;IAGA;IACA;IACA;IACA;IACA;IACA;;EAEN,eAAe;;UAIA;EACf;EACA;EACA;IAEM;IACA;IACA;IACA;IACA;MACE;MACA;;;IAIF;IACA;;EAEN,eAAe;;UAGA;EACf;EACA;EACA;IAEM;IACA;IACA;;IAGA;IACA;IACA;;IAGA;;;;;;IAMA;;EAEN,eAAe;;UAGA;EACf;EACA;EACA;IAEM;IACA;IACA;IACA;MACE;MACA;MACA;QAAc;;MACd;QACM;QAAgB;QAA+B;;QAC/C;QAAc;QAA0B;;;;IAIhD;IACA;;EAEN,SAAS;EACT,eAAe;;UAEA;EACf;EACA;EACA;EACA;EACA;EACA,eAAe;;UAGA;EACf;EACA;EACA;EACA,kBAEI;IACE;IACA;IACA,YAAY;;EAElB,eAAe;;KAGL;EAEN;EACA;EACA,cAAc;EACd,eAAe;EACf;EACA;;;;;EAKA;;;;;;;;EAQA,kBAAkB;;EAKlB;EACA;EACA,eAAe;;EAGf;EACA;;EAGA;EACA;;EAGA;EACA;EACA;EACA;EACA;EACA,eAAe;;EAGf;EACA;EACA;EACA;EACA;EACA;EACA,eAAe;;;;;;EAOf;EACA,UAAU;IAAiB;IAAmB;;EAC9C,eAAe;;EAGf;EACA;EAIA,eAAe;;EAGf;EACA;EACA;EACA,eAAe;;EAGf;EACA;EACA,eAAe;;EAGf;EACA;;EAGA;EACA;EACA;EACA;EACA;EACA;IAAc;;EACd;EACA;EACA;EACA,eAAe;;EAGf;EAIA;EACA;EACA;EACA;EACA;IACE;IACA;IACA;IACA;IACA;;EAEF;EACA,eAAe;;EAGf;EACA;;EAGA;EACA;;EAGA;EACA;EACA;EACA;EACA;EACA;IACE;IACA;;;KAMI;EACN;EAAsB;;EACtB;;EACA;EAAc;EAAc;;cAgNrB,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EACA;EACA,SAAS,WAAW;EACpB,QAAQ;;qBAGG,2BAA2B;mBAOT;WANpB;MAEL;EAIyB,YAAA,QAAQ;UAEvB;UAMA;EA0BR,YACJ,QAAQ,WAAW,8BAClB,QAAQ,QAAQ,WAAW"}
|
package/dist/internal/index.js
CHANGED
|
@@ -386,8 +386,15 @@ const anthropicModelCatalog = Object.fromEntries(Object.entries({
|
|
|
386
386
|
toolSearch: false,
|
|
387
387
|
compaction: false,
|
|
388
388
|
effort: false
|
|
389
|
-
}
|
|
390
|
-
|
|
389
|
+
},
|
|
390
|
+
"claude-3-haiku-20240307": void 0,
|
|
391
|
+
"claude-haiku-4-5-20251001": void 0,
|
|
392
|
+
"claude-opus-4-1-20250805": void 0,
|
|
393
|
+
"claude-opus-4-20250514": void 0,
|
|
394
|
+
"claude-opus-4-5-20251101": void 0,
|
|
395
|
+
"claude-sonnet-4-20250514": void 0,
|
|
396
|
+
"claude-sonnet-4-5-20250929": void 0
|
|
397
|
+
}).filter(([, definition]) => definition != null).map(([modelId, capabilities]) => [modelId, createAnthropicLanguageModelEntry(modelId, capabilities)]));
|
|
391
398
|
function getAnthropicLanguageModelEntry(modelId) {
|
|
392
399
|
return Object.prototype.hasOwnProperty.call(anthropicModelCatalog, modelId) ? anthropicModelCatalog[modelId] : createAnthropicLanguageModelEntry(modelId);
|
|
393
400
|
}
|