@llumiverse/common 0.23.0-dev.20251121 → 0.23.0-dev.20251201
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/package.json +1 -1
- package/src/capability/vertexai.ts +3 -0
- package/src/options/vertexai.ts +32 -4
- package/src/types.ts +8 -1
- package/lib/cjs/capability/azure_foundry.js +0 -159
- package/lib/cjs/capability/azure_foundry.js.map +0 -1
- package/lib/cjs/capability/bedrock.js +0 -191
- package/lib/cjs/capability/bedrock.js.map +0 -1
- package/lib/cjs/capability/openai.js +0 -124
- package/lib/cjs/capability/openai.js.map +0 -1
- package/lib/cjs/capability/vertexai.js +0 -98
- package/lib/cjs/capability/vertexai.js.map +0 -1
- package/lib/cjs/capability.js +0 -64
- package/lib/cjs/capability.js.map +0 -1
- package/lib/cjs/index.js +0 -25
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/options/azure_foundry.js +0 -428
- package/lib/cjs/options/azure_foundry.js.map +0 -1
- package/lib/cjs/options/bedrock.js +0 -462
- package/lib/cjs/options/bedrock.js.map +0 -1
- package/lib/cjs/options/fallback.js +0 -35
- package/lib/cjs/options/fallback.js.map +0 -1
- package/lib/cjs/options/groq.js +0 -37
- package/lib/cjs/options/groq.js.map +0 -1
- package/lib/cjs/options/openai.js +0 -126
- package/lib/cjs/options/openai.js.map +0 -1
- package/lib/cjs/options/vertexai.js +0 -478
- package/lib/cjs/options/vertexai.js.map +0 -1
- package/lib/cjs/options.js +0 -30
- package/lib/cjs/options.js.map +0 -1
- package/lib/cjs/package.json +0 -3
- package/lib/cjs/types.js +0 -175
- package/lib/cjs/types.js.map +0 -1
- package/lib/esm/capability/azure_foundry.js +0 -156
- package/lib/esm/capability/azure_foundry.js.map +0 -1
- package/lib/esm/capability/bedrock.js +0 -188
- package/lib/esm/capability/bedrock.js.map +0 -1
- package/lib/esm/capability/openai.js +0 -121
- package/lib/esm/capability/openai.js.map +0 -1
- package/lib/esm/capability/vertexai.js +0 -95
- package/lib/esm/capability/vertexai.js.map +0 -1
- package/lib/esm/capability.js +0 -59
- package/lib/esm/capability.js.map +0 -1
- package/lib/esm/index.js +0 -9
- package/lib/esm/index.js.map +0 -1
- package/lib/esm/options/azure_foundry.js +0 -424
- package/lib/esm/options/azure_foundry.js.map +0 -1
- package/lib/esm/options/bedrock.js +0 -458
- package/lib/esm/options/bedrock.js.map +0 -1
- package/lib/esm/options/fallback.js +0 -32
- package/lib/esm/options/fallback.js.map +0 -1
- package/lib/esm/options/groq.js +0 -34
- package/lib/esm/options/groq.js.map +0 -1
- package/lib/esm/options/openai.js +0 -123
- package/lib/esm/options/openai.js.map +0 -1
- package/lib/esm/options/vertexai.js +0 -473
- package/lib/esm/options/vertexai.js.map +0 -1
- package/lib/esm/options.js +0 -27
- package/lib/esm/options.js.map +0 -1
- package/lib/esm/types.js +0 -172
- package/lib/esm/types.js.map +0 -1
- package/lib/tsconfig.tsbuildinfo +0 -1
- package/lib/types/capability/azure_foundry.d.ts +0 -6
- package/lib/types/capability/azure_foundry.d.ts.map +0 -1
- package/lib/types/capability/bedrock.d.ts +0 -6
- package/lib/types/capability/bedrock.d.ts.map +0 -1
- package/lib/types/capability/openai.d.ts +0 -10
- package/lib/types/capability/openai.d.ts.map +0 -1
- package/lib/types/capability/vertexai.d.ts +0 -10
- package/lib/types/capability/vertexai.d.ts.map +0 -1
- package/lib/types/capability.d.ts +0 -4
- package/lib/types/capability.d.ts.map +0 -1
- package/lib/types/index.d.ts +0 -8
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/options/azure_foundry.d.ts +0 -51
- package/lib/types/options/azure_foundry.d.ts.map +0 -1
- package/lib/types/options/bedrock.d.ts +0 -51
- package/lib/types/options/bedrock.d.ts.map +0 -1
- package/lib/types/options/fallback.d.ts +0 -12
- package/lib/types/options/fallback.d.ts.map +0 -1
- package/lib/types/options/groq.d.ts +0 -11
- package/lib/types/options/groq.d.ts.map +0 -1
- package/lib/types/options/openai.d.ts +0 -20
- package/lib/types/options/openai.d.ts.map +0 -1
- package/lib/types/options/vertexai.d.ts +0 -67
- package/lib/types/options/vertexai.d.ts.map +0 -1
- package/lib/types/options.d.ts +0 -2
- package/lib/types/options.d.ts.map +0 -1
- package/lib/types/types.d.ts +0 -401
- package/lib/types/types.d.ts.map +0 -1
package/lib/cjs/options.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/options.ts"],"names":[],"mappings":";;AAQA,gCAkBC;AA1BD,qDAAyD;AACzD,+CAAmD;AACnD,mDAAuD;AACvD,uDAA2D;AAC3D,uDAA4D;AAC5D,yCAAuE;AACvE,iEAAoE;AAEpE,SAAgB,UAAU,CAAC,KAAa,EAAE,QAA6B,EAAE,OAAsB;IAC3F,IAAG,CAAC,QAAQ,EAAE,CAAC;QACX,OAAO,iCAAmB,CAAC;IAC/B,CAAC;IACD,QAAQ,QAAQ,CAAC,WAAW,EAAE,EAAE,CAAC;QAC7B,KAAK,oBAAS,CAAC,OAAO;YAClB,OAAO,IAAA,8BAAiB,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAC7C,KAAK,oBAAS,CAAC,QAAQ;YACnB,OAAO,IAAA,gCAAkB,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAC9C,KAAK,oBAAS,CAAC,MAAM;YACjB,OAAO,IAAA,4BAAgB,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAC5C,KAAK,oBAAS,CAAC,IAAI;YACf,OAAO,IAAA,wBAAc,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAC1C,KAAK,oBAAS,CAAC,aAAa;YACxB,OAAO,IAAA,yCAAsB,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAClD;YACI,OAAO,iCAAmB,CAAC;IACnC,CAAC;AACL,CAAC"}
|
package/lib/cjs/package.json
DELETED
package/lib/cjs/types.js
DELETED
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TrainingJobStatus = exports.ModelType = exports.AIModelStatus = exports.Modalities = exports.PromptRole = exports.OptionType = exports.SharedOptions = exports.ProviderList = exports.Providers = void 0;
|
|
4
|
-
// ============== Provider details ===============
|
|
5
|
-
var Providers;
|
|
6
|
-
(function (Providers) {
|
|
7
|
-
Providers["openai"] = "openai";
|
|
8
|
-
Providers["azure_openai"] = "azure_openai";
|
|
9
|
-
Providers["azure_foundry"] = "azure_foundry";
|
|
10
|
-
Providers["huggingface_ie"] = "huggingface_ie";
|
|
11
|
-
Providers["replicate"] = "replicate";
|
|
12
|
-
Providers["bedrock"] = "bedrock";
|
|
13
|
-
Providers["vertexai"] = "vertexai";
|
|
14
|
-
Providers["togetherai"] = "togetherai";
|
|
15
|
-
Providers["mistralai"] = "mistralai";
|
|
16
|
-
Providers["groq"] = "groq";
|
|
17
|
-
Providers["watsonx"] = "watsonx";
|
|
18
|
-
})(Providers || (exports.Providers = Providers = {}));
|
|
19
|
-
exports.ProviderList = {
|
|
20
|
-
openai: {
|
|
21
|
-
id: Providers.openai,
|
|
22
|
-
name: "OpenAI",
|
|
23
|
-
requiresApiKey: true,
|
|
24
|
-
requiresEndpointUrl: false,
|
|
25
|
-
supportSearch: false,
|
|
26
|
-
},
|
|
27
|
-
azure_openai: {
|
|
28
|
-
id: Providers.azure_openai,
|
|
29
|
-
name: "Azure OpenAI",
|
|
30
|
-
requiresApiKey: false,
|
|
31
|
-
requiresEndpointUrl: true,
|
|
32
|
-
supportSearch: false,
|
|
33
|
-
},
|
|
34
|
-
azure_foundry: {
|
|
35
|
-
id: Providers.azure_foundry,
|
|
36
|
-
name: "Azure Foundry",
|
|
37
|
-
requiresApiKey: true,
|
|
38
|
-
requiresEndpointUrl: true,
|
|
39
|
-
supportSearch: false,
|
|
40
|
-
},
|
|
41
|
-
huggingface_ie: {
|
|
42
|
-
id: Providers.huggingface_ie,
|
|
43
|
-
name: "HuggingFace Inference Endpoint",
|
|
44
|
-
requiresApiKey: true,
|
|
45
|
-
requiresEndpointUrl: true,
|
|
46
|
-
},
|
|
47
|
-
replicate: {
|
|
48
|
-
id: Providers.replicate,
|
|
49
|
-
name: "Replicate",
|
|
50
|
-
requiresApiKey: true,
|
|
51
|
-
requiresEndpointUrl: false,
|
|
52
|
-
supportSearch: true,
|
|
53
|
-
},
|
|
54
|
-
bedrock: {
|
|
55
|
-
id: Providers.bedrock,
|
|
56
|
-
name: "AWS Bedrock",
|
|
57
|
-
requiresApiKey: false,
|
|
58
|
-
requiresEndpointUrl: false,
|
|
59
|
-
endpointPlaceholder: "region name (eg. us-east-1)",
|
|
60
|
-
supportSearch: false,
|
|
61
|
-
},
|
|
62
|
-
vertexai: {
|
|
63
|
-
id: Providers.vertexai,
|
|
64
|
-
name: "Google Vertex AI",
|
|
65
|
-
requiresApiKey: false,
|
|
66
|
-
requiresEndpointUrl: false,
|
|
67
|
-
supportSearch: false,
|
|
68
|
-
},
|
|
69
|
-
togetherai: {
|
|
70
|
-
id: Providers.togetherai,
|
|
71
|
-
name: "Together AI",
|
|
72
|
-
requiresApiKey: false,
|
|
73
|
-
requiresEndpointUrl: false,
|
|
74
|
-
supportSearch: false,
|
|
75
|
-
},
|
|
76
|
-
mistralai: {
|
|
77
|
-
id: Providers.mistralai,
|
|
78
|
-
name: "Mistral AI",
|
|
79
|
-
requiresApiKey: false,
|
|
80
|
-
requiresEndpointUrl: false,
|
|
81
|
-
supportSearch: false,
|
|
82
|
-
},
|
|
83
|
-
groq: {
|
|
84
|
-
id: Providers.groq,
|
|
85
|
-
name: "Groq Cloud",
|
|
86
|
-
requiresApiKey: false,
|
|
87
|
-
requiresEndpointUrl: false,
|
|
88
|
-
supportSearch: false,
|
|
89
|
-
},
|
|
90
|
-
watsonx: {
|
|
91
|
-
id: Providers.watsonx,
|
|
92
|
-
name: "IBM WatsonX",
|
|
93
|
-
requiresApiKey: true,
|
|
94
|
-
requiresEndpointUrl: true,
|
|
95
|
-
supportSearch: false
|
|
96
|
-
},
|
|
97
|
-
};
|
|
98
|
-
//Common names to share between different models
|
|
99
|
-
var SharedOptions;
|
|
100
|
-
(function (SharedOptions) {
|
|
101
|
-
//Text
|
|
102
|
-
SharedOptions["max_tokens"] = "max_tokens";
|
|
103
|
-
SharedOptions["temperature"] = "temperature";
|
|
104
|
-
SharedOptions["top_p"] = "top_p";
|
|
105
|
-
SharedOptions["top_k"] = "top_k";
|
|
106
|
-
SharedOptions["presence_penalty"] = "presence_penalty";
|
|
107
|
-
SharedOptions["frequency_penalty"] = "frequency_penalty";
|
|
108
|
-
SharedOptions["stop_sequence"] = "stop_sequence";
|
|
109
|
-
//Image
|
|
110
|
-
SharedOptions["seed"] = "seed";
|
|
111
|
-
SharedOptions["number_of_images"] = "number_of_images";
|
|
112
|
-
})(SharedOptions || (exports.SharedOptions = SharedOptions = {}));
|
|
113
|
-
var OptionType;
|
|
114
|
-
(function (OptionType) {
|
|
115
|
-
OptionType["numeric"] = "numeric";
|
|
116
|
-
OptionType["enum"] = "enum";
|
|
117
|
-
OptionType["boolean"] = "boolean";
|
|
118
|
-
OptionType["string_list"] = "string_list";
|
|
119
|
-
})(OptionType || (exports.OptionType = OptionType = {}));
|
|
120
|
-
// ============== Prompts ===============
|
|
121
|
-
var PromptRole;
|
|
122
|
-
(function (PromptRole) {
|
|
123
|
-
PromptRole["safety"] = "safety";
|
|
124
|
-
PromptRole["system"] = "system";
|
|
125
|
-
PromptRole["user"] = "user";
|
|
126
|
-
PromptRole["assistant"] = "assistant";
|
|
127
|
-
PromptRole["negative"] = "negative";
|
|
128
|
-
PromptRole["mask"] = "mask";
|
|
129
|
-
/**
|
|
130
|
-
* Used to send the response of a tool
|
|
131
|
-
*/
|
|
132
|
-
PromptRole["tool"] = "tool";
|
|
133
|
-
})(PromptRole || (exports.PromptRole = PromptRole = {}));
|
|
134
|
-
var Modalities;
|
|
135
|
-
(function (Modalities) {
|
|
136
|
-
Modalities["text"] = "text";
|
|
137
|
-
Modalities["image"] = "image";
|
|
138
|
-
})(Modalities || (exports.Modalities = Modalities = {}));
|
|
139
|
-
var AIModelStatus;
|
|
140
|
-
(function (AIModelStatus) {
|
|
141
|
-
AIModelStatus["Available"] = "available";
|
|
142
|
-
AIModelStatus["Pending"] = "pending";
|
|
143
|
-
AIModelStatus["Stopped"] = "stopped";
|
|
144
|
-
AIModelStatus["Unavailable"] = "unavailable";
|
|
145
|
-
AIModelStatus["Unknown"] = "unknown";
|
|
146
|
-
AIModelStatus["Legacy"] = "legacy";
|
|
147
|
-
})(AIModelStatus || (exports.AIModelStatus = AIModelStatus = {}));
|
|
148
|
-
var ModelType;
|
|
149
|
-
(function (ModelType) {
|
|
150
|
-
ModelType["Classifier"] = "classifier";
|
|
151
|
-
ModelType["Regressor"] = "regressor";
|
|
152
|
-
ModelType["Clustering"] = "clustering";
|
|
153
|
-
ModelType["AnomalyDetection"] = "anomaly-detection";
|
|
154
|
-
ModelType["TimeSeries"] = "time-series";
|
|
155
|
-
ModelType["Text"] = "text";
|
|
156
|
-
ModelType["Image"] = "image";
|
|
157
|
-
ModelType["Audio"] = "audio";
|
|
158
|
-
ModelType["Video"] = "video";
|
|
159
|
-
ModelType["Embedding"] = "embedding";
|
|
160
|
-
ModelType["Chat"] = "chat";
|
|
161
|
-
ModelType["Code"] = "code";
|
|
162
|
-
ModelType["NLP"] = "nlp";
|
|
163
|
-
ModelType["MultiModal"] = "multi-modal";
|
|
164
|
-
ModelType["Test"] = "test";
|
|
165
|
-
ModelType["Other"] = "other";
|
|
166
|
-
ModelType["Unknown"] = "unknown";
|
|
167
|
-
})(ModelType || (exports.ModelType = ModelType = {}));
|
|
168
|
-
var TrainingJobStatus;
|
|
169
|
-
(function (TrainingJobStatus) {
|
|
170
|
-
TrainingJobStatus["running"] = "running";
|
|
171
|
-
TrainingJobStatus["succeeded"] = "succeeded";
|
|
172
|
-
TrainingJobStatus["failed"] = "failed";
|
|
173
|
-
TrainingJobStatus["cancelled"] = "cancelled";
|
|
174
|
-
})(TrainingJobStatus || (exports.TrainingJobStatus = TrainingJobStatus = {}));
|
|
175
|
-
//# sourceMappingURL=types.js.map
|
package/lib/cjs/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;AAMA,kDAAkD;AAElD,IAAY,SAYX;AAZD,WAAY,SAAS;IACjB,8BAAiB,CAAA;IACjB,0CAA6B,CAAA;IAC7B,4CAA+B,CAAA;IAC/B,8CAAiC,CAAA;IACjC,oCAAuB,CAAA;IACvB,gCAAmB,CAAA;IACnB,kCAAqB,CAAA;IACrB,sCAAyB,CAAA;IACzB,oCAAuB,CAAA;IACvB,0BAAa,CAAA;IACb,gCAAmB,CAAA;AACvB,CAAC,EAZW,SAAS,yBAAT,SAAS,QAYpB;AAWY,QAAA,YAAY,GAAsC;IAC3D,MAAM,EACN;QACI,EAAE,EAAE,SAAS,CAAC,MAAM;QACpB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE,IAAI;QACpB,mBAAmB,EAAE,KAAK;QAC1B,aAAa,EAAE,KAAK;KACvB;IACD,YAAY,EACZ;QACI,EAAE,EAAE,SAAS,CAAC,YAAY;QAC1B,IAAI,EAAE,cAAc;QACpB,cAAc,EAAE,KAAK;QACrB,mBAAmB,EAAE,IAAI;QACzB,aAAa,EAAE,KAAK;KACvB;IACD,aAAa,EACb;QACI,EAAE,EAAE,SAAS,CAAC,aAAa;QAC3B,IAAI,EAAE,eAAe;QACrB,cAAc,EAAE,IAAI;QACpB,mBAAmB,EAAE,IAAI;QACzB,aAAa,EAAE,KAAK;KACvB;IACD,cAAc,EACd;QACI,EAAE,EAAE,SAAS,CAAC,cAAc;QAC5B,IAAI,EAAE,gCAAgC;QACtC,cAAc,EAAE,IAAI;QACpB,mBAAmB,EAAE,IAAI;KAC5B;IACD,SAAS,EACT;QACI,EAAE,EAAE,SAAS,CAAC,SAAS;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AAA;IACf,gCAAmB,CAAA;AACvB,CAAC,EAlBW,SAAS,yBAAT,SAAS,QAkBpB;AA2BD,IAAY,iBAKX;AALD,WAAY,iBAAiB;IACzB,wCAAmB,CAAA;IACnB,4CAAuB,CAAA;IACvB,sCAAiB,CAAA;IACjB,4CAAuB,CAAA;AAC3B,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B"}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
// Global feature flags - temporarily disable tool support for non-OpenAI models
|
|
2
|
-
const ENABLE_TOOL_SUPPORT_NON_OPENAI = false;
|
|
3
|
-
// Record of Azure Foundry model capabilities keyed by model ID (lowercased)
|
|
4
|
-
// Only include models with specific exceptions that differ from their family patterns
|
|
5
|
-
const RECORD_MODEL_CAPABILITIES = {
|
|
6
|
-
// OpenAI O-series exceptions - o1-mini doesn't have tool support like other o1 models
|
|
7
|
-
"o1-mini": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
8
|
-
// OpenAI o3 is text-only unlike other o-series models
|
|
9
|
-
"o3": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
10
|
-
// Models with special properties not covered by family patterns
|
|
11
|
-
"deepseek-r1-0528": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
12
|
-
"deepseek-v3-0324": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
13
|
-
"mistral-medium-2505": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
14
|
-
"mistral-nemo": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
15
|
-
"llama-4-scout-17b-16e-instruct": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
16
|
-
};
|
|
17
|
-
// Populate RECORD_FAMILY_CAPABILITIES as a const record (lowest common denominator for each family)
|
|
18
|
-
const RECORD_FAMILY_CAPABILITIES = {
|
|
19
|
-
// OpenAI GPT families
|
|
20
|
-
"gpt-3.5-turbo": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
21
|
-
"gpt-35-turbo": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
22
|
-
"gpt-35": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
23
|
-
"gpt-4": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
24
|
-
"gpt-4.1": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
25
|
-
"gpt-4.5": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
26
|
-
"gpt-4o": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
27
|
-
"gpt": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
28
|
-
// OpenAI O-series families
|
|
29
|
-
"o1": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
30
|
-
"o1-preview": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
31
|
-
"o1-pro": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
32
|
-
"o3-mini": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
33
|
-
"o4-mini": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
34
|
-
"o4": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
35
|
-
// Llama families
|
|
36
|
-
"llama-3.1": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
37
|
-
"llama-3.2": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
38
|
-
"llama-3.3": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
39
|
-
"llama-3": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
40
|
-
"llama-4": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
41
|
-
"llama": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
42
|
-
// Mistral families
|
|
43
|
-
"mistral-large": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
44
|
-
"mistral-small": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
45
|
-
"mistral": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
46
|
-
// Microsoft Phi families
|
|
47
|
-
"phi-4": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
48
|
-
"phi": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
49
|
-
// DeepSeek families
|
|
50
|
-
"deepseek-r1": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
51
|
-
"deepseek-v3": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
52
|
-
"deepseek": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
53
|
-
// AI21 families
|
|
54
|
-
"ai21-jamba": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
55
|
-
"ai21": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
56
|
-
"jamba": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
57
|
-
// Cohere families
|
|
58
|
-
"cohere-command": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
59
|
-
"cohere": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
60
|
-
"command": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
61
|
-
// xAI families
|
|
62
|
-
"grok-3": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
63
|
-
"grok": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true }
|
|
64
|
-
};
|
|
65
|
-
// Fallback pattern lists for inferring modalities and tool support
|
|
66
|
-
const IMAGE_INPUT_MODELS = ["image", "vision"];
|
|
67
|
-
const VIDEO_INPUT_MODELS = ["video"];
|
|
68
|
-
const AUDIO_INPUT_MODELS = ["audio"];
|
|
69
|
-
const TEXT_INPUT_MODELS = ["text"];
|
|
70
|
-
const IMAGE_OUTPUT_MODELS = ["image"];
|
|
71
|
-
const VIDEO_OUTPUT_MODELS = ["video"];
|
|
72
|
-
const AUDIO_OUTPUT_MODELS = ["audio"];
|
|
73
|
-
const TEXT_OUTPUT_MODELS = ["text"];
|
|
74
|
-
const EMBEDDING_OUTPUT_MODELS = ["embed"];
|
|
75
|
-
const TOOL_SUPPORT_MODELS = ["tool", "gpt-4", "gpt-4o", "o1", "o3", "o4", "llama-3", "mistral-large", "mistral-small", "jamba", "cohere", "command", "grok"];
|
|
76
|
-
function modelMatches(modelName, patterns) {
|
|
77
|
-
return patterns.some(pattern => modelName.includes(pattern));
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Get the full ModelCapabilities for an Azure Foundry model.
|
|
81
|
-
* Checks RECORD_MODEL_CAPABILITIES first, then falls back to family pattern matching.
|
|
82
|
-
*/
|
|
83
|
-
export function getModelCapabilitiesAzureFoundry(model) {
|
|
84
|
-
// Extract base model from composite ID (deployment::baseModel)
|
|
85
|
-
const { baseModel } = parseAzureFoundryModelId(model);
|
|
86
|
-
const normalized = baseModel.toLowerCase();
|
|
87
|
-
// 1. Exact match in record
|
|
88
|
-
const record = RECORD_MODEL_CAPABILITIES[normalized];
|
|
89
|
-
if (record) {
|
|
90
|
-
return applyGlobalToolSupportDisable(record, normalized);
|
|
91
|
-
}
|
|
92
|
-
// 2. Fallback: find the longest matching family prefix in RECORD_FAMILY_CAPABILITIES
|
|
93
|
-
let bestFamilyKey = undefined;
|
|
94
|
-
let bestFamilyLength = 0;
|
|
95
|
-
for (const key of Object.keys(RECORD_FAMILY_CAPABILITIES)) {
|
|
96
|
-
if (normalized.startsWith(key) && key.length > bestFamilyLength) {
|
|
97
|
-
bestFamilyKey = key;
|
|
98
|
-
bestFamilyLength = key.length;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
if (bestFamilyKey) {
|
|
102
|
-
return applyGlobalToolSupportDisable(RECORD_FAMILY_CAPABILITIES[bestFamilyKey], normalized);
|
|
103
|
-
}
|
|
104
|
-
// 3. Fallback: infer from normalized name using patterns
|
|
105
|
-
const input = {
|
|
106
|
-
text: modelMatches(normalized, TEXT_INPUT_MODELS) || true, // Default to text input
|
|
107
|
-
image: modelMatches(normalized, IMAGE_INPUT_MODELS) || undefined,
|
|
108
|
-
video: modelMatches(normalized, VIDEO_INPUT_MODELS) || undefined,
|
|
109
|
-
audio: modelMatches(normalized, AUDIO_INPUT_MODELS) || undefined,
|
|
110
|
-
embed: false
|
|
111
|
-
};
|
|
112
|
-
const output = {
|
|
113
|
-
text: modelMatches(normalized, TEXT_OUTPUT_MODELS) || true, // Default to text output
|
|
114
|
-
image: modelMatches(normalized, IMAGE_OUTPUT_MODELS) || undefined,
|
|
115
|
-
video: modelMatches(normalized, VIDEO_OUTPUT_MODELS) || undefined,
|
|
116
|
-
audio: modelMatches(normalized, AUDIO_OUTPUT_MODELS) || undefined,
|
|
117
|
-
embed: modelMatches(normalized, EMBEDDING_OUTPUT_MODELS) || undefined
|
|
118
|
-
};
|
|
119
|
-
const tool_support = modelMatches(normalized, TOOL_SUPPORT_MODELS) || undefined;
|
|
120
|
-
const tool_support_streaming = tool_support || undefined;
|
|
121
|
-
const inferredCapabilities = { input, output, tool_support, tool_support_streaming };
|
|
122
|
-
return applyGlobalToolSupportDisable(inferredCapabilities, normalized);
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Apply global tool support disable for non-OpenAI models.
|
|
126
|
-
* Preserves model-specific information for future use while temporarily disabling tool support.
|
|
127
|
-
*/
|
|
128
|
-
function applyGlobalToolSupportDisable(capabilities, modelName) {
|
|
129
|
-
// Check if this is an OpenAI model
|
|
130
|
-
const isOpenAIModel = modelName.startsWith('gpt-') || modelName.startsWith('o1') || modelName.startsWith('o3') || modelName.startsWith('o4');
|
|
131
|
-
if (!ENABLE_TOOL_SUPPORT_NON_OPENAI && !isOpenAIModel) {
|
|
132
|
-
// Disable tool support for non-OpenAI models while preserving other capabilities
|
|
133
|
-
return {
|
|
134
|
-
...capabilities,
|
|
135
|
-
tool_support: false,
|
|
136
|
-
tool_support_streaming: false
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
return capabilities;
|
|
140
|
-
}
|
|
141
|
-
// Helper function to parse composite model IDs
|
|
142
|
-
function parseAzureFoundryModelId(compositeId) {
|
|
143
|
-
const parts = compositeId.split('::');
|
|
144
|
-
if (parts.length === 2) {
|
|
145
|
-
return {
|
|
146
|
-
deploymentName: parts[0],
|
|
147
|
-
baseModel: parts[1]
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
// Backwards compatibility: if no delimiter found, treat as deployment name
|
|
151
|
-
return {
|
|
152
|
-
deploymentName: compositeId,
|
|
153
|
-
baseModel: compositeId
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
//# sourceMappingURL=azure_foundry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azure_foundry.js","sourceRoot":"","sources":["../../../src/capability/azure_foundry.ts"],"names":[],"mappings":"AAEA,gFAAgF;AAChF,MAAM,8BAA8B,GAAG,KAAK,CAAC;AAE7C,6EAA6E;AAC7E,sFAAsF;AACtF,MAAM,yBAAyB,GAAsC;IACjE,sFAAsF;IACtF,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE;IAC/N,sDAAsD;IACtD,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE;IAE1N,gEAAgE;IAChE,kBAAkB,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,K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CAAC,CAAC,CAAC;YACxB,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC;SACtB,CAAC;IACN,CAAC;IAED,2EAA2E;IAC3E,OAAO;QACH,cAAc,EAAE,WAAW;QAC3B,SAAS,EAAE,WAAW;KACzB,CAAC;AACN,CAAC"}
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
// Record of Bedrock model capabilities keyed by model ID.
|
|
2
|
-
const RECORD_MODEL_CAPABILITIES = {
|
|
3
|
-
"foundation-model/ai21.jamba-1-5-large-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
4
|
-
"foundation-model/ai21.jamba-1-5-mini-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
5
|
-
"foundation-model/ai21.jamba-instruct-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
6
|
-
"foundation-model/amazon.nova-canvas-v1:0": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { image: true, text: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
7
|
-
"foundation-model/amazon.nova-lite-v1:0": { input: { text: true, image: true, video: true, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
8
|
-
"foundation-model/amazon.nova-micro-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
9
|
-
"foundation-model/amazon.nova-pro-v1:0": { input: { text: true, image: true, video: true, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
10
|
-
"foundation-model/amazon.titan-text-express-v1": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
11
|
-
"foundation-model/amazon.titan-text-lite-v1": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
12
|
-
"foundation-model/amazon.titan-text-premier-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
13
|
-
"foundation-model/amazon.titan-tg1-large": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
14
|
-
"foundation-model/anthropic.claude-3-5-haiku-20241022-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
15
|
-
"foundation-model/anthropic.claude-3-5-sonnet-20240620-v1:0": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
16
|
-
"foundation-model/anthropic.claude-3-5-sonnet-20241022-v2:0": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
17
|
-
"foundation-model/anthropic.claude-3-haiku-20240307-v1:0": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
18
|
-
"foundation-model/anthropic.claude-3-opus-20240229-v1:0": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
19
|
-
"foundation-model/anthropic.claude-3-sonnet-20240229-v1:0": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
20
|
-
"foundation-model/anthropic.claude-instant-v1": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
21
|
-
"foundation-model/anthropic.claude-v2": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
22
|
-
"foundation-model/anthropic.claude-v2:1": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
23
|
-
"foundation-model/cohere.command-light-text-v14": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
24
|
-
"foundation-model/cohere.command-r-plus-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
25
|
-
"foundation-model/cohere.command-r-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
26
|
-
"foundation-model/cohere.command-text-v14": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
27
|
-
"foundation-model/meta.llama3-1-405b-instruct-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
28
|
-
"foundation-model/meta.llama3-1-70b-instruct-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
29
|
-
"foundation-model/meta.llama3-1-8b-instruct-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
30
|
-
"foundation-model/meta.llama3-70b-instruct-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
31
|
-
"foundation-model/meta.llama3-8b-instruct-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
32
|
-
"foundation-model/mistral.mixtral-8x7b-instruct-v0:1": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
33
|
-
"foundation-model/mistral.mistral-7b-instruct-v0:2": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
34
|
-
"foundation-model/mistral.mistral-large-2402-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
35
|
-
"foundation-model/mistral.mistral-large-2407-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
36
|
-
"foundation-model/mistral.mistral-small-2402-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
37
|
-
"foundation-model/openai.gpt-oss-20b-1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
38
|
-
"foundation-model/openai.gpt-oss-120b-1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
39
|
-
"inference-profile/us.amazon.nova-lite-v1:0": { input: { text: true, image: true, video: true, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
40
|
-
"inference-profile/us.amazon.nova-micro-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
41
|
-
"inference-profile/us.amazon.nova-premier-v1:0": { input: { text: true, image: true, video: true, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
42
|
-
"inference-profile/us.amazon.nova-pro-v1:0": { input: { text: true, image: true, video: true, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
43
|
-
"inference-profile/us.anthropic.claude-3-5-haiku-20241022-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
44
|
-
"inference-profile/us.anthropic.claude-3-5-sonnet-20240620-v1:0": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
45
|
-
"inference-profile/us.anthropic.claude-3-5-sonnet-20241022-v2:0": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
46
|
-
"inference-profile/us.anthropic.claude-3-7-sonnet-20250219-v1:0": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
47
|
-
"inference-profile/us.anthropic.claude-3-haiku-20240307-v1:0": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
48
|
-
"inference-profile/us.anthropic.claude-3-opus-20240229-v1:0": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
49
|
-
"inference-profile/us.anthropic.claude-3-sonnet-20240229-v1:0": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
50
|
-
"inference-profile/us.anthropic.claude-opus-4-20250514-v1:0": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
51
|
-
"inference-profile/us.anthropic.claude-sonnet-4-20250514-v1:0": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
52
|
-
"inference-profile/us.deepseek.r1-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
53
|
-
"inference-profile/us.meta.llama3-1-70b-instruct-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
54
|
-
"inference-profile/us.meta.llama3-1-8b-instruct-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
55
|
-
"inference-profile/us.meta.llama3-2-1b-instruct-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
56
|
-
"inference-profile/us.meta.llama3-2-11b-instruct-v1:0": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
57
|
-
"inference-profile/us.meta.llama3-2-3b-instruct-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
58
|
-
"inference-profile/us.meta.llama3-2-90b-instruct-v1:0": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
59
|
-
"inference-profile/us.meta.llama3-3-70b-instruct-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
60
|
-
"inference-profile/us.meta.llama4-maverick-17b-instruct-v1:0": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
61
|
-
"inference-profile/us.meta.llama4-scout-17b-instruct-v1:0": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
62
|
-
"inference-profile/us.mistral.pixtral-large-2502-v1:0": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
63
|
-
"inference-profile/us.writer.palmyra-x4-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
64
|
-
"inference-profile/us.writer.palmyra-x5-v1:0": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
65
|
-
};
|
|
66
|
-
// Populate RECORD_FAMILY_CAPABILITIES as a const record (lowest common denominator for each family)
|
|
67
|
-
const RECORD_FAMILY_CAPABILITIES = {
|
|
68
|
-
"foundation-model/ai21.jamba": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
69
|
-
"foundation-model/amazon.nova": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: false, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
70
|
-
"foundation-model/amazon.titan": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
71
|
-
"foundation-model/anthropic.claude": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
72
|
-
"foundation-model/anthropic.claude-3": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
73
|
-
"foundation-model/anthropic.claude-3-5": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
74
|
-
"foundation-model/anthropic.claude-3-7": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
75
|
-
"foundation-model/cohere.command": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
76
|
-
"foundation-model/meta.llama3": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
77
|
-
"foundation-model/mistral.mistral": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
78
|
-
"foundation-model/mistral.mistral-large": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
79
|
-
"foundation-model/mistral.mixtral": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
80
|
-
"foundation-model/qwen.": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
81
|
-
"foundation-model/openai.gpt-oss": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
82
|
-
"inference-profile/us.anthropic.claude-3-haiku": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
83
|
-
"inference-profile/us.anthropic.claude-3-5-sonnet": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },
|
|
84
|
-
"inference-profile/us.anthropic.claude-3-opus": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
85
|
-
"inference-profile/us.anthropic.claude-3-sonnet": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
86
|
-
"inference-profile/us.anthropic.claude": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
87
|
-
"inference-profile/us.deepseek.r1": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
88
|
-
"inference-profile/us.meta.llama3": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
89
|
-
"inference-profile/us.meta.llama4-maverick-17b": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
90
|
-
"inference-profile/us.meta.llama4-scout-17b": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },
|
|
91
|
-
"inference-profile/us.mistral.pixtral": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
92
|
-
"inference-profile/us.writer.palmyra": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
93
|
-
"inference-profile/us.twelvelabs.": { input: { text: true, image: false, video: true, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* Extract the model identifier from an ARN or inference profile
|
|
97
|
-
* @param modelName The full model ARN or name
|
|
98
|
-
* @returns The normalized model identifier
|
|
99
|
-
*/
|
|
100
|
-
function normalizeModelName(modelName) {
|
|
101
|
-
const modelLower = modelName.toLowerCase();
|
|
102
|
-
if (modelLower.includes("inference-profile")) {
|
|
103
|
-
const parts = modelLower.split("/");
|
|
104
|
-
if (parts.length > 1) {
|
|
105
|
-
const providerModel = parts[parts.length - 1];
|
|
106
|
-
const modelParts = providerModel.split(".");
|
|
107
|
-
if (modelParts.length > 1 && modelParts[1] === "deepseek") {
|
|
108
|
-
return `deepseek-${modelParts.slice(2).join(".")}`;
|
|
109
|
-
}
|
|
110
|
-
return modelParts.length > 2 ? modelParts.slice(2).join(".") : providerModel;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
return modelLower;
|
|
114
|
-
}
|
|
115
|
-
// Fallback pattern lists for inferring modalities and tool support
|
|
116
|
-
const IMAGE_INPUT_MODELS = ["image"]; // fallback: if model id contains 'image', supports image input
|
|
117
|
-
const VIDEO_INPUT_MODELS = ["video"];
|
|
118
|
-
const AUDIO_INPUT_MODELS = ["audio"];
|
|
119
|
-
const TEXT_INPUT_MODELS = ["text"];
|
|
120
|
-
const IMAGE_OUTPUT_MODELS = ["image"];
|
|
121
|
-
const VIDEO_OUTPUT_MODELS = ["video"];
|
|
122
|
-
const AUDIO_OUTPUT_MODELS = ["audio"];
|
|
123
|
-
const TEXT_OUTPUT_MODELS = ["text"];
|
|
124
|
-
const EMBEDDING_OUTPUT_MODELS = ["embed"];
|
|
125
|
-
const TOOL_SUPPORT_MODELS = ["tool", "sonnet", "opus", "nova", "palmyra", "command-r", "mistral-large", "pixtral"];
|
|
126
|
-
function modelMatches(modelName, patterns) {
|
|
127
|
-
return patterns.some(pattern => modelName.includes(pattern));
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Get the full ModelCapabilities for a Bedrock model.
|
|
131
|
-
* Checks RECORD_MODEL_CAPABILITIES first, then falls back to pattern-based inference.
|
|
132
|
-
*/
|
|
133
|
-
export function getModelCapabilitiesBedrock(model) {
|
|
134
|
-
// Normalize ARN or inference-profile to model ID
|
|
135
|
-
let normalized = model;
|
|
136
|
-
const arnPattern = /^arn:aws:bedrock:[^:]+:[^:]*:(inference-profile|foundation-model)\/.+/i;
|
|
137
|
-
if (arnPattern.test(model)) {
|
|
138
|
-
// Extract after last occurrence of 'foundation-model/' or 'inference-profile/'
|
|
139
|
-
const foundationIdx = model.lastIndexOf('foundation-model/');
|
|
140
|
-
const inferenceIdx = model.lastIndexOf('inference-profile/');
|
|
141
|
-
if (foundationIdx !== -1) {
|
|
142
|
-
normalized = model.substring(foundationIdx);
|
|
143
|
-
}
|
|
144
|
-
else if (inferenceIdx !== -1) {
|
|
145
|
-
normalized = model.substring(inferenceIdx);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
// Standardize region for inference-profile to 'us' for record lookup
|
|
149
|
-
// This allows support for different AWS regions by mapping all to 'us'
|
|
150
|
-
if (normalized.startsWith("inference-profile/")) {
|
|
151
|
-
normalized = normalized.replace(/^inference-profile\/[^.]+\./, "inference-profile/us.");
|
|
152
|
-
}
|
|
153
|
-
// 1. Exact match in record
|
|
154
|
-
const record = RECORD_MODEL_CAPABILITIES[normalized];
|
|
155
|
-
if (record)
|
|
156
|
-
return record;
|
|
157
|
-
// 2. Fallback: find the longest matching family prefix in RECORD_FAMILY_CAPABILITIES
|
|
158
|
-
let bestFamilyKey = undefined;
|
|
159
|
-
let bestFamilyLength = 0;
|
|
160
|
-
for (const key of Object.keys(RECORD_FAMILY_CAPABILITIES)) {
|
|
161
|
-
if (normalized.startsWith(key) && key.length > bestFamilyLength) {
|
|
162
|
-
bestFamilyKey = key;
|
|
163
|
-
bestFamilyLength = key.length;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
if (bestFamilyKey) {
|
|
167
|
-
return RECORD_FAMILY_CAPABILITIES[bestFamilyKey];
|
|
168
|
-
}
|
|
169
|
-
// 3. Fallback: infer from normalized name
|
|
170
|
-
normalized = normalizeModelName(normalized);
|
|
171
|
-
const input = {
|
|
172
|
-
text: modelMatches(normalized, TEXT_INPUT_MODELS) || undefined,
|
|
173
|
-
image: modelMatches(normalized, IMAGE_INPUT_MODELS) || undefined,
|
|
174
|
-
video: modelMatches(normalized, VIDEO_INPUT_MODELS) || undefined,
|
|
175
|
-
audio: modelMatches(normalized, AUDIO_INPUT_MODELS) || undefined,
|
|
176
|
-
embed: false
|
|
177
|
-
};
|
|
178
|
-
const output = {
|
|
179
|
-
text: modelMatches(normalized, TEXT_OUTPUT_MODELS) || undefined,
|
|
180
|
-
image: modelMatches(normalized, IMAGE_OUTPUT_MODELS) || undefined,
|
|
181
|
-
video: modelMatches(normalized, VIDEO_OUTPUT_MODELS) || undefined,
|
|
182
|
-
audio: modelMatches(normalized, AUDIO_OUTPUT_MODELS) || undefined,
|
|
183
|
-
embed: modelMatches(normalized, EMBEDDING_OUTPUT_MODELS) || undefined
|
|
184
|
-
};
|
|
185
|
-
const tool_support = modelMatches(normalized, TOOL_SUPPORT_MODELS) || undefined;
|
|
186
|
-
return { input, output, tool_support };
|
|
187
|
-
}
|
|
188
|
-
//# sourceMappingURL=bedrock.js.map
|