@mozaik-ai/core 4.0.6 → 4.1.0
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/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +292 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +292 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1282,12 +1282,16 @@ var OpenAIResponsesMapper = class {
|
|
|
1282
1282
|
|
|
1283
1283
|
// src/infrastructure/providers/openai/endpoints/openai-responses.ts
|
|
1284
1284
|
var OpenAIResponses = class {
|
|
1285
|
-
constructor(endpointMapper = new OpenAIResponsesMapper()) {
|
|
1285
|
+
constructor(endpointMapper = new OpenAIResponsesMapper(), config = {}) {
|
|
1286
1286
|
this.endpointMapper = endpointMapper;
|
|
1287
|
+
this.clientConfig = config;
|
|
1287
1288
|
}
|
|
1288
1289
|
get client() {
|
|
1289
1290
|
var _a;
|
|
1290
|
-
return (_a = this._client) != null ? _a : this._client = new OpenAI(
|
|
1291
|
+
return (_a = this._client) != null ? _a : this._client = new OpenAI({
|
|
1292
|
+
baseURL: this.clientConfig.baseURL,
|
|
1293
|
+
apiKey: this.clientConfig.apiKey
|
|
1294
|
+
});
|
|
1291
1295
|
}
|
|
1292
1296
|
async infer(inferenceInput) {
|
|
1293
1297
|
const request = this.endpointMapper.toRequest(inferenceInput);
|
|
@@ -1918,6 +1922,248 @@ var claudeHaiku45Specification = {
|
|
|
1918
1922
|
supportsStructuredOutput: true
|
|
1919
1923
|
};
|
|
1920
1924
|
|
|
1925
|
+
// src/infrastructure/providers/openai/models/gpt-6-astra.ts
|
|
1926
|
+
var gpt6AstraSpecification = {
|
|
1927
|
+
name: "gpt-6-astra",
|
|
1928
|
+
provider: "openai",
|
|
1929
|
+
supportsReasoningEffort: true,
|
|
1930
|
+
supportedReasoningEfforts: ["max", "xhigh", "high", "medium", "low"],
|
|
1931
|
+
supportedContextItemTypes: [
|
|
1932
|
+
"user_message",
|
|
1933
|
+
"system_message",
|
|
1934
|
+
"developer_message",
|
|
1935
|
+
"reasoning",
|
|
1936
|
+
"function_call",
|
|
1937
|
+
"function_call_output",
|
|
1938
|
+
"model_message"
|
|
1939
|
+
],
|
|
1940
|
+
supportsStreaming: true,
|
|
1941
|
+
contextWindowSize: 105e4,
|
|
1942
|
+
maxOutputTokens: 128e3,
|
|
1943
|
+
supportsFunctionCalling: true,
|
|
1944
|
+
supportsStructuredOutput: true
|
|
1945
|
+
};
|
|
1946
|
+
|
|
1947
|
+
// src/infrastructure/providers/openai/models/gpt-6-1-sol.ts
|
|
1948
|
+
var gpt61SolSpecification = {
|
|
1949
|
+
name: "gpt-6.1-sol",
|
|
1950
|
+
provider: "openai",
|
|
1951
|
+
supportsReasoningEffort: true,
|
|
1952
|
+
supportedReasoningEfforts: ["max", "xhigh", "high", "medium", "low"],
|
|
1953
|
+
supportedContextItemTypes: [
|
|
1954
|
+
"user_message",
|
|
1955
|
+
"system_message",
|
|
1956
|
+
"developer_message",
|
|
1957
|
+
"reasoning",
|
|
1958
|
+
"function_call",
|
|
1959
|
+
"function_call_output",
|
|
1960
|
+
"model_message"
|
|
1961
|
+
],
|
|
1962
|
+
supportsStreaming: true,
|
|
1963
|
+
contextWindowSize: 105e4,
|
|
1964
|
+
maxOutputTokens: 128e3,
|
|
1965
|
+
supportsFunctionCalling: true,
|
|
1966
|
+
supportsStructuredOutput: true
|
|
1967
|
+
};
|
|
1968
|
+
|
|
1969
|
+
// src/infrastructure/providers/openai/models/gpt-6-sol.ts
|
|
1970
|
+
var gpt6SolSpecification = {
|
|
1971
|
+
name: "gpt-6-sol",
|
|
1972
|
+
provider: "openai",
|
|
1973
|
+
supportsReasoningEffort: true,
|
|
1974
|
+
supportedReasoningEfforts: ["max", "xhigh", "high", "medium", "low", "none"],
|
|
1975
|
+
supportedContextItemTypes: [
|
|
1976
|
+
"user_message",
|
|
1977
|
+
"system_message",
|
|
1978
|
+
"developer_message",
|
|
1979
|
+
"reasoning",
|
|
1980
|
+
"function_call",
|
|
1981
|
+
"function_call_output",
|
|
1982
|
+
"model_message"
|
|
1983
|
+
],
|
|
1984
|
+
supportsStreaming: true,
|
|
1985
|
+
contextWindowSize: 105e4,
|
|
1986
|
+
maxOutputTokens: 128e3,
|
|
1987
|
+
supportsFunctionCalling: true,
|
|
1988
|
+
supportsStructuredOutput: true
|
|
1989
|
+
};
|
|
1990
|
+
|
|
1991
|
+
// src/infrastructure/providers/openai/models/gpt-6-luna.ts
|
|
1992
|
+
var gpt6LunaSpecification = {
|
|
1993
|
+
name: "gpt-6-luna",
|
|
1994
|
+
provider: "openai",
|
|
1995
|
+
supportsReasoningEffort: true,
|
|
1996
|
+
supportedReasoningEfforts: ["max", "xhigh", "high", "medium", "low", "none"],
|
|
1997
|
+
supportedContextItemTypes: [
|
|
1998
|
+
"user_message",
|
|
1999
|
+
"system_message",
|
|
2000
|
+
"developer_message",
|
|
2001
|
+
"reasoning",
|
|
2002
|
+
"function_call",
|
|
2003
|
+
"function_call_output",
|
|
2004
|
+
"model_message"
|
|
2005
|
+
],
|
|
2006
|
+
supportsStreaming: true,
|
|
2007
|
+
contextWindowSize: 105e4,
|
|
2008
|
+
maxOutputTokens: 128e3,
|
|
2009
|
+
supportsFunctionCalling: true,
|
|
2010
|
+
supportsStructuredOutput: true
|
|
2011
|
+
};
|
|
2012
|
+
|
|
2013
|
+
// src/infrastructure/providers/anthropic/models/claude-5-1-fable.ts
|
|
2014
|
+
var claudeFable51Specification = {
|
|
2015
|
+
name: "claude-fable-5-1",
|
|
2016
|
+
provider: "anthropic",
|
|
2017
|
+
supportsReasoningEffort: true,
|
|
2018
|
+
supportedReasoningEfforts: ["max", "xhigh", "high", "medium", "low"],
|
|
2019
|
+
supportedContextItemTypes: [
|
|
2020
|
+
"user_message",
|
|
2021
|
+
"system_message",
|
|
2022
|
+
"developer_message",
|
|
2023
|
+
"reasoning",
|
|
2024
|
+
"function_call",
|
|
2025
|
+
"function_call_output",
|
|
2026
|
+
"model_message"
|
|
2027
|
+
],
|
|
2028
|
+
supportsStreaming: true,
|
|
2029
|
+
contextWindowSize: 1e6,
|
|
2030
|
+
maxOutputTokens: 128e3,
|
|
2031
|
+
supportsFunctionCalling: true,
|
|
2032
|
+
supportsStructuredOutput: true
|
|
2033
|
+
};
|
|
2034
|
+
|
|
2035
|
+
// src/infrastructure/providers/anthropic/models/claude-5-5-opus.ts
|
|
2036
|
+
var claudeOpus55Specification = {
|
|
2037
|
+
name: "claude-opus-5-5",
|
|
2038
|
+
provider: "anthropic",
|
|
2039
|
+
supportsReasoningEffort: true,
|
|
2040
|
+
supportedReasoningEfforts: ["max", "xhigh", "high", "medium", "low"],
|
|
2041
|
+
supportedContextItemTypes: [
|
|
2042
|
+
"user_message",
|
|
2043
|
+
"system_message",
|
|
2044
|
+
"developer_message",
|
|
2045
|
+
"reasoning",
|
|
2046
|
+
"function_call",
|
|
2047
|
+
"function_call_output",
|
|
2048
|
+
"model_message"
|
|
2049
|
+
],
|
|
2050
|
+
supportsStreaming: true,
|
|
2051
|
+
contextWindowSize: 1e6,
|
|
2052
|
+
maxOutputTokens: 128e3,
|
|
2053
|
+
supportsFunctionCalling: true,
|
|
2054
|
+
supportsStructuredOutput: true
|
|
2055
|
+
};
|
|
2056
|
+
|
|
2057
|
+
// src/infrastructure/providers/anthropic/models/claude-5-5-sonnet.ts
|
|
2058
|
+
var claudeSonnet55Specification = {
|
|
2059
|
+
name: "claude-sonnet-5-5",
|
|
2060
|
+
provider: "anthropic",
|
|
2061
|
+
supportsReasoningEffort: true,
|
|
2062
|
+
supportedReasoningEfforts: ["max", "xhigh", "high", "medium", "low"],
|
|
2063
|
+
supportedContextItemTypes: [
|
|
2064
|
+
"user_message",
|
|
2065
|
+
"system_message",
|
|
2066
|
+
"developer_message",
|
|
2067
|
+
"reasoning",
|
|
2068
|
+
"function_call",
|
|
2069
|
+
"function_call_output",
|
|
2070
|
+
"model_message"
|
|
2071
|
+
],
|
|
2072
|
+
supportsStreaming: true,
|
|
2073
|
+
contextWindowSize: 1e6,
|
|
2074
|
+
maxOutputTokens: 128e3,
|
|
2075
|
+
supportsFunctionCalling: true,
|
|
2076
|
+
supportsStructuredOutput: true
|
|
2077
|
+
};
|
|
2078
|
+
|
|
2079
|
+
// src/infrastructure/providers/anthropic/models/claude-5-sonnet.ts
|
|
2080
|
+
var claudeSonnet5Specification = {
|
|
2081
|
+
name: "claude-sonnet-5",
|
|
2082
|
+
provider: "anthropic",
|
|
2083
|
+
supportsReasoningEffort: true,
|
|
2084
|
+
supportedReasoningEfforts: ["max", "xhigh", "high", "medium", "low"],
|
|
2085
|
+
supportedContextItemTypes: [
|
|
2086
|
+
"user_message",
|
|
2087
|
+
"system_message",
|
|
2088
|
+
"developer_message",
|
|
2089
|
+
"reasoning",
|
|
2090
|
+
"function_call",
|
|
2091
|
+
"function_call_output",
|
|
2092
|
+
"model_message"
|
|
2093
|
+
],
|
|
2094
|
+
supportsStreaming: true,
|
|
2095
|
+
contextWindowSize: 1e6,
|
|
2096
|
+
maxOutputTokens: 128e3,
|
|
2097
|
+
supportsFunctionCalling: true,
|
|
2098
|
+
supportsStructuredOutput: true
|
|
2099
|
+
};
|
|
2100
|
+
|
|
2101
|
+
// src/infrastructure/providers/gemini/models/gemini-3-8-flash.ts
|
|
2102
|
+
var gemini38FlashSpecification = {
|
|
2103
|
+
name: "gemini-3.8-flash",
|
|
2104
|
+
provider: "google",
|
|
2105
|
+
supportsReasoningEffort: true,
|
|
2106
|
+
supportedReasoningEfforts: ["high", "medium", "low"],
|
|
2107
|
+
supportedContextItemTypes: [
|
|
2108
|
+
"user_message",
|
|
2109
|
+
"system_message",
|
|
2110
|
+
"developer_message",
|
|
2111
|
+
"reasoning",
|
|
2112
|
+
"function_call",
|
|
2113
|
+
"function_call_output",
|
|
2114
|
+
"model_message"
|
|
2115
|
+
],
|
|
2116
|
+
supportsStreaming: true,
|
|
2117
|
+
contextWindowSize: 1048576,
|
|
2118
|
+
maxOutputTokens: 65536,
|
|
2119
|
+
supportsFunctionCalling: true,
|
|
2120
|
+
supportsStructuredOutput: true
|
|
2121
|
+
};
|
|
2122
|
+
|
|
2123
|
+
// src/infrastructure/providers/gemini/models/gemini-3-5-flash-lite.ts
|
|
2124
|
+
var gemini35FlashLiteSpecification = {
|
|
2125
|
+
name: "gemini-3.5-flash-lite",
|
|
2126
|
+
provider: "google",
|
|
2127
|
+
supportsReasoningEffort: true,
|
|
2128
|
+
supportedReasoningEfforts: ["high", "medium", "low", "minimal"],
|
|
2129
|
+
supportedContextItemTypes: [
|
|
2130
|
+
"user_message",
|
|
2131
|
+
"system_message",
|
|
2132
|
+
"developer_message",
|
|
2133
|
+
"reasoning",
|
|
2134
|
+
"function_call",
|
|
2135
|
+
"function_call_output",
|
|
2136
|
+
"model_message"
|
|
2137
|
+
],
|
|
2138
|
+
supportsStreaming: true,
|
|
2139
|
+
contextWindowSize: 1048576,
|
|
2140
|
+
maxOutputTokens: 65536,
|
|
2141
|
+
supportsFunctionCalling: true,
|
|
2142
|
+
supportsStructuredOutput: true
|
|
2143
|
+
};
|
|
2144
|
+
|
|
2145
|
+
// src/infrastructure/providers/deepseek/models/deepseek-flash.ts
|
|
2146
|
+
var deepSeekFlashSpecification = {
|
|
2147
|
+
name: "deepseek-flash",
|
|
2148
|
+
provider: "deepseek",
|
|
2149
|
+
supportsReasoningEffort: true,
|
|
2150
|
+
supportedReasoningEfforts: ["max", "high", "medium", "low", "none"],
|
|
2151
|
+
supportedContextItemTypes: [
|
|
2152
|
+
"user_message",
|
|
2153
|
+
"system_message",
|
|
2154
|
+
"developer_message",
|
|
2155
|
+
"reasoning",
|
|
2156
|
+
"function_call",
|
|
2157
|
+
"function_call_output",
|
|
2158
|
+
"model_message"
|
|
2159
|
+
],
|
|
2160
|
+
supportsStreaming: true,
|
|
2161
|
+
contextWindowSize: 1e6,
|
|
2162
|
+
maxOutputTokens: 384e3,
|
|
2163
|
+
supportsFunctionCalling: true,
|
|
2164
|
+
supportsStructuredOutput: false
|
|
2165
|
+
};
|
|
2166
|
+
|
|
1921
2167
|
// src/application/services/models.ts
|
|
1922
2168
|
var supportedModels = [
|
|
1923
2169
|
{
|
|
@@ -1936,6 +2182,22 @@ var supportedModels = [
|
|
|
1936
2182
|
endpoint: new OpenAIResponses(),
|
|
1937
2183
|
specification: gpt55Specification
|
|
1938
2184
|
},
|
|
2185
|
+
{
|
|
2186
|
+
endpoint: new OpenAIResponses(),
|
|
2187
|
+
specification: gpt6LunaSpecification
|
|
2188
|
+
},
|
|
2189
|
+
{
|
|
2190
|
+
endpoint: new OpenAIResponses(),
|
|
2191
|
+
specification: gpt6SolSpecification
|
|
2192
|
+
},
|
|
2193
|
+
{
|
|
2194
|
+
endpoint: new OpenAIResponses(),
|
|
2195
|
+
specification: gpt61SolSpecification
|
|
2196
|
+
},
|
|
2197
|
+
{
|
|
2198
|
+
endpoint: new OpenAIResponses(),
|
|
2199
|
+
specification: gpt6AstraSpecification
|
|
2200
|
+
},
|
|
1939
2201
|
{
|
|
1940
2202
|
endpoint: new AnthropicMessages(),
|
|
1941
2203
|
specification: claudeHaiku45Specification
|
|
@@ -1952,6 +2214,22 @@ var supportedModels = [
|
|
|
1952
2214
|
endpoint: new AnthropicMessages(),
|
|
1953
2215
|
specification: claudeOpus48Specification
|
|
1954
2216
|
},
|
|
2217
|
+
{
|
|
2218
|
+
endpoint: new AnthropicMessages(),
|
|
2219
|
+
specification: claudeSonnet5Specification
|
|
2220
|
+
},
|
|
2221
|
+
{
|
|
2222
|
+
endpoint: new AnthropicMessages(),
|
|
2223
|
+
specification: claudeSonnet55Specification
|
|
2224
|
+
},
|
|
2225
|
+
{
|
|
2226
|
+
endpoint: new AnthropicMessages(),
|
|
2227
|
+
specification: claudeOpus55Specification
|
|
2228
|
+
},
|
|
2229
|
+
{
|
|
2230
|
+
endpoint: new AnthropicMessages(),
|
|
2231
|
+
specification: claudeFable51Specification
|
|
2232
|
+
},
|
|
1955
2233
|
{
|
|
1956
2234
|
endpoint: new GeminiGenerateContent(),
|
|
1957
2235
|
specification: gemini35FlashSpecification
|
|
@@ -1960,6 +2238,14 @@ var supportedModels = [
|
|
|
1960
2238
|
endpoint: new GeminiGenerateContent(),
|
|
1961
2239
|
specification: gemini31ProSpecification
|
|
1962
2240
|
},
|
|
2241
|
+
{
|
|
2242
|
+
endpoint: new GeminiGenerateContent(),
|
|
2243
|
+
specification: gemini35FlashLiteSpecification
|
|
2244
|
+
},
|
|
2245
|
+
{
|
|
2246
|
+
endpoint: new GeminiGenerateContent(),
|
|
2247
|
+
specification: gemini38FlashSpecification
|
|
2248
|
+
},
|
|
1963
2249
|
{
|
|
1964
2250
|
endpoint: new OpenAIChatCompletions(),
|
|
1965
2251
|
specification: deepSeekV4FlashSpecification
|
|
@@ -1967,6 +2253,10 @@ var supportedModels = [
|
|
|
1967
2253
|
{
|
|
1968
2254
|
endpoint: new OpenAIChatCompletions(),
|
|
1969
2255
|
specification: deepSeekV4ProSpecification
|
|
2256
|
+
},
|
|
2257
|
+
{
|
|
2258
|
+
endpoint: new OpenAIChatCompletions(),
|
|
2259
|
+
specification: deepSeekFlashSpecification
|
|
1970
2260
|
}
|
|
1971
2261
|
];
|
|
1972
2262
|
|