llm-exe 2.3.9 → 2.3.11
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 +39 -3
- package/dist/index.d.ts +39 -3
- package/dist/index.js +29 -13
- package/dist/index.mjs +29 -13
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1133,10 +1133,10 @@ type AllUseLlmOptions = AllLlm & {
|
|
|
1133
1133
|
"anthropic.claude-opus-4-7": {
|
|
1134
1134
|
input: Omit<AnthropicRequest, "model">;
|
|
1135
1135
|
};
|
|
1136
|
-
"anthropic.claude-
|
|
1136
|
+
"anthropic.claude-sonnet-4-6": {
|
|
1137
1137
|
input: Omit<AnthropicRequest, "model">;
|
|
1138
1138
|
};
|
|
1139
|
-
"anthropic.claude-
|
|
1139
|
+
"anthropic.claude-opus-4-5": {
|
|
1140
1140
|
input: Omit<AnthropicRequest, "model">;
|
|
1141
1141
|
};
|
|
1142
1142
|
"anthropic.claude-haiku-4-5": {
|
|
@@ -1145,6 +1145,9 @@ type AllUseLlmOptions = AllLlm & {
|
|
|
1145
1145
|
"anthropic.claude-sonnet-4-5": {
|
|
1146
1146
|
input: Omit<AnthropicRequest, "model">;
|
|
1147
1147
|
};
|
|
1148
|
+
"anthropic.claude-opus-4-6": {
|
|
1149
|
+
input: Omit<AnthropicRequest, "model">;
|
|
1150
|
+
};
|
|
1148
1151
|
"anthropic.claude-opus-4-1": {
|
|
1149
1152
|
input: Omit<AnthropicRequest, "model">;
|
|
1150
1153
|
};
|
|
@@ -1181,6 +1184,12 @@ type AllUseLlmOptions = AllLlm & {
|
|
|
1181
1184
|
"google.gemini-2.5-pro": {
|
|
1182
1185
|
input: Omit<GeminiRequest, "model">;
|
|
1183
1186
|
};
|
|
1187
|
+
"google.gemini-3.1-flash-lite": {
|
|
1188
|
+
input: Omit<GeminiRequest, "model">;
|
|
1189
|
+
};
|
|
1190
|
+
"google.gemini-3.5-flash": {
|
|
1191
|
+
input: Omit<GeminiRequest, "model">;
|
|
1192
|
+
};
|
|
1184
1193
|
"google.gemini-2.0-flash": {
|
|
1185
1194
|
input: Omit<GeminiRequest, "model">;
|
|
1186
1195
|
};
|
|
@@ -1208,6 +1217,15 @@ type AllUseLlmOptions = AllLlm & {
|
|
|
1208
1217
|
"xai.grok-4-1-fast": {
|
|
1209
1218
|
input: Omit<XAiRequest, "model">;
|
|
1210
1219
|
};
|
|
1220
|
+
"xai.grok-4.3": {
|
|
1221
|
+
input: Omit<XAiRequest, "model">;
|
|
1222
|
+
};
|
|
1223
|
+
"xai.grok-4.20": {
|
|
1224
|
+
input: Omit<XAiRequest, "model">;
|
|
1225
|
+
};
|
|
1226
|
+
"xai.grok-4.20-reasoning": {
|
|
1227
|
+
input: Omit<XAiRequest, "model">;
|
|
1228
|
+
};
|
|
1211
1229
|
"ollama.deepseek-r1": {
|
|
1212
1230
|
input: GenericLLm;
|
|
1213
1231
|
};
|
|
@@ -1235,6 +1253,15 @@ type AllUseLlmOptions = AllLlm & {
|
|
|
1235
1253
|
"ollama.qwen3": {
|
|
1236
1254
|
input: GenericLLm;
|
|
1237
1255
|
};
|
|
1256
|
+
"ollama.qwen3.5": {
|
|
1257
|
+
input: GenericLLm;
|
|
1258
|
+
};
|
|
1259
|
+
"ollama.gemma4": {
|
|
1260
|
+
input: GenericLLm;
|
|
1261
|
+
};
|
|
1262
|
+
"ollama.gpt-oss": {
|
|
1263
|
+
input: GenericLLm;
|
|
1264
|
+
};
|
|
1238
1265
|
"deepseek.chat": {
|
|
1239
1266
|
input: DeepseekRequest;
|
|
1240
1267
|
};
|
|
@@ -1565,6 +1592,8 @@ declare const configs: {
|
|
|
1565
1592
|
"google.gemini-2.5-flash": Config<keyof AllLlm>;
|
|
1566
1593
|
"google.gemini-2.5-flash-lite": Config<keyof AllLlm>;
|
|
1567
1594
|
"google.gemini-2.5-pro": Config<keyof AllLlm>;
|
|
1595
|
+
"google.gemini-3.1-flash-lite": Config<keyof AllLlm>;
|
|
1596
|
+
"google.gemini-3.5-flash": Config<keyof AllLlm>;
|
|
1568
1597
|
"google.gemini-2.0-flash": Config<keyof AllLlm>;
|
|
1569
1598
|
"google.gemini-2.0-flash-lite": Config<keyof AllLlm>;
|
|
1570
1599
|
"google.gemini-1.5-pro": Config<keyof AllLlm>;
|
|
@@ -1578,6 +1607,9 @@ declare const configs: {
|
|
|
1578
1607
|
"ollama.mistral": Config<keyof AllLlm>;
|
|
1579
1608
|
"ollama.qwen2.5": Config<keyof AllLlm>;
|
|
1580
1609
|
"ollama.qwen3": Config<keyof AllLlm>;
|
|
1610
|
+
"ollama.qwen3.5": Config<keyof AllLlm>;
|
|
1611
|
+
"ollama.gemma4": Config<keyof AllLlm>;
|
|
1612
|
+
"ollama.gpt-oss": Config<keyof AllLlm>;
|
|
1581
1613
|
"xai.chat.v1": Config<keyof AllLlm>;
|
|
1582
1614
|
"xai.grok-2": Config<keyof AllLlm>;
|
|
1583
1615
|
"xai.grok-3": Config<keyof AllLlm>;
|
|
@@ -1585,14 +1617,18 @@ declare const configs: {
|
|
|
1585
1617
|
"xai.grok-4": Config<keyof AllLlm>;
|
|
1586
1618
|
"xai.grok-4-fast": Config<keyof AllLlm>;
|
|
1587
1619
|
"xai.grok-4-1-fast": Config<keyof AllLlm>;
|
|
1620
|
+
"xai.grok-4.3": Config<keyof AllLlm>;
|
|
1621
|
+
"xai.grok-4.20": Config<keyof AllLlm>;
|
|
1622
|
+
"xai.grok-4.20-reasoning": Config<keyof AllLlm>;
|
|
1588
1623
|
"amazon:anthropic.chat.v1": Config<keyof AllLlm>;
|
|
1589
1624
|
"amazon:meta.chat.v1": Config<keyof AllLlm>;
|
|
1590
1625
|
"anthropic.chat.v1": Config<keyof AllLlm>;
|
|
1591
1626
|
"anthropic.claude-opus-4-7": Config<keyof AllLlm>;
|
|
1592
|
-
"anthropic.claude-opus-4-6": Config<keyof AllLlm>;
|
|
1593
1627
|
"anthropic.claude-sonnet-4-6": Config<keyof AllLlm>;
|
|
1628
|
+
"anthropic.claude-opus-4-5": Config<keyof AllLlm>;
|
|
1594
1629
|
"anthropic.claude-haiku-4-5": Config<keyof AllLlm>;
|
|
1595
1630
|
"anthropic.claude-sonnet-4-5": Config<keyof AllLlm>;
|
|
1631
|
+
"anthropic.claude-opus-4-6": Config<keyof AllLlm>;
|
|
1596
1632
|
"anthropic.claude-opus-4-1": Config<keyof AllLlm>;
|
|
1597
1633
|
"anthropic.claude-sonnet-4": Config<keyof AllLlm>;
|
|
1598
1634
|
"anthropic.claude-opus-4": Config<keyof AllLlm>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1133,10 +1133,10 @@ type AllUseLlmOptions = AllLlm & {
|
|
|
1133
1133
|
"anthropic.claude-opus-4-7": {
|
|
1134
1134
|
input: Omit<AnthropicRequest, "model">;
|
|
1135
1135
|
};
|
|
1136
|
-
"anthropic.claude-
|
|
1136
|
+
"anthropic.claude-sonnet-4-6": {
|
|
1137
1137
|
input: Omit<AnthropicRequest, "model">;
|
|
1138
1138
|
};
|
|
1139
|
-
"anthropic.claude-
|
|
1139
|
+
"anthropic.claude-opus-4-5": {
|
|
1140
1140
|
input: Omit<AnthropicRequest, "model">;
|
|
1141
1141
|
};
|
|
1142
1142
|
"anthropic.claude-haiku-4-5": {
|
|
@@ -1145,6 +1145,9 @@ type AllUseLlmOptions = AllLlm & {
|
|
|
1145
1145
|
"anthropic.claude-sonnet-4-5": {
|
|
1146
1146
|
input: Omit<AnthropicRequest, "model">;
|
|
1147
1147
|
};
|
|
1148
|
+
"anthropic.claude-opus-4-6": {
|
|
1149
|
+
input: Omit<AnthropicRequest, "model">;
|
|
1150
|
+
};
|
|
1148
1151
|
"anthropic.claude-opus-4-1": {
|
|
1149
1152
|
input: Omit<AnthropicRequest, "model">;
|
|
1150
1153
|
};
|
|
@@ -1181,6 +1184,12 @@ type AllUseLlmOptions = AllLlm & {
|
|
|
1181
1184
|
"google.gemini-2.5-pro": {
|
|
1182
1185
|
input: Omit<GeminiRequest, "model">;
|
|
1183
1186
|
};
|
|
1187
|
+
"google.gemini-3.1-flash-lite": {
|
|
1188
|
+
input: Omit<GeminiRequest, "model">;
|
|
1189
|
+
};
|
|
1190
|
+
"google.gemini-3.5-flash": {
|
|
1191
|
+
input: Omit<GeminiRequest, "model">;
|
|
1192
|
+
};
|
|
1184
1193
|
"google.gemini-2.0-flash": {
|
|
1185
1194
|
input: Omit<GeminiRequest, "model">;
|
|
1186
1195
|
};
|
|
@@ -1208,6 +1217,15 @@ type AllUseLlmOptions = AllLlm & {
|
|
|
1208
1217
|
"xai.grok-4-1-fast": {
|
|
1209
1218
|
input: Omit<XAiRequest, "model">;
|
|
1210
1219
|
};
|
|
1220
|
+
"xai.grok-4.3": {
|
|
1221
|
+
input: Omit<XAiRequest, "model">;
|
|
1222
|
+
};
|
|
1223
|
+
"xai.grok-4.20": {
|
|
1224
|
+
input: Omit<XAiRequest, "model">;
|
|
1225
|
+
};
|
|
1226
|
+
"xai.grok-4.20-reasoning": {
|
|
1227
|
+
input: Omit<XAiRequest, "model">;
|
|
1228
|
+
};
|
|
1211
1229
|
"ollama.deepseek-r1": {
|
|
1212
1230
|
input: GenericLLm;
|
|
1213
1231
|
};
|
|
@@ -1235,6 +1253,15 @@ type AllUseLlmOptions = AllLlm & {
|
|
|
1235
1253
|
"ollama.qwen3": {
|
|
1236
1254
|
input: GenericLLm;
|
|
1237
1255
|
};
|
|
1256
|
+
"ollama.qwen3.5": {
|
|
1257
|
+
input: GenericLLm;
|
|
1258
|
+
};
|
|
1259
|
+
"ollama.gemma4": {
|
|
1260
|
+
input: GenericLLm;
|
|
1261
|
+
};
|
|
1262
|
+
"ollama.gpt-oss": {
|
|
1263
|
+
input: GenericLLm;
|
|
1264
|
+
};
|
|
1238
1265
|
"deepseek.chat": {
|
|
1239
1266
|
input: DeepseekRequest;
|
|
1240
1267
|
};
|
|
@@ -1565,6 +1592,8 @@ declare const configs: {
|
|
|
1565
1592
|
"google.gemini-2.5-flash": Config<keyof AllLlm>;
|
|
1566
1593
|
"google.gemini-2.5-flash-lite": Config<keyof AllLlm>;
|
|
1567
1594
|
"google.gemini-2.5-pro": Config<keyof AllLlm>;
|
|
1595
|
+
"google.gemini-3.1-flash-lite": Config<keyof AllLlm>;
|
|
1596
|
+
"google.gemini-3.5-flash": Config<keyof AllLlm>;
|
|
1568
1597
|
"google.gemini-2.0-flash": Config<keyof AllLlm>;
|
|
1569
1598
|
"google.gemini-2.0-flash-lite": Config<keyof AllLlm>;
|
|
1570
1599
|
"google.gemini-1.5-pro": Config<keyof AllLlm>;
|
|
@@ -1578,6 +1607,9 @@ declare const configs: {
|
|
|
1578
1607
|
"ollama.mistral": Config<keyof AllLlm>;
|
|
1579
1608
|
"ollama.qwen2.5": Config<keyof AllLlm>;
|
|
1580
1609
|
"ollama.qwen3": Config<keyof AllLlm>;
|
|
1610
|
+
"ollama.qwen3.5": Config<keyof AllLlm>;
|
|
1611
|
+
"ollama.gemma4": Config<keyof AllLlm>;
|
|
1612
|
+
"ollama.gpt-oss": Config<keyof AllLlm>;
|
|
1581
1613
|
"xai.chat.v1": Config<keyof AllLlm>;
|
|
1582
1614
|
"xai.grok-2": Config<keyof AllLlm>;
|
|
1583
1615
|
"xai.grok-3": Config<keyof AllLlm>;
|
|
@@ -1585,14 +1617,18 @@ declare const configs: {
|
|
|
1585
1617
|
"xai.grok-4": Config<keyof AllLlm>;
|
|
1586
1618
|
"xai.grok-4-fast": Config<keyof AllLlm>;
|
|
1587
1619
|
"xai.grok-4-1-fast": Config<keyof AllLlm>;
|
|
1620
|
+
"xai.grok-4.3": Config<keyof AllLlm>;
|
|
1621
|
+
"xai.grok-4.20": Config<keyof AllLlm>;
|
|
1622
|
+
"xai.grok-4.20-reasoning": Config<keyof AllLlm>;
|
|
1588
1623
|
"amazon:anthropic.chat.v1": Config<keyof AllLlm>;
|
|
1589
1624
|
"amazon:meta.chat.v1": Config<keyof AllLlm>;
|
|
1590
1625
|
"anthropic.chat.v1": Config<keyof AllLlm>;
|
|
1591
1626
|
"anthropic.claude-opus-4-7": Config<keyof AllLlm>;
|
|
1592
|
-
"anthropic.claude-opus-4-6": Config<keyof AllLlm>;
|
|
1593
1627
|
"anthropic.claude-sonnet-4-6": Config<keyof AllLlm>;
|
|
1628
|
+
"anthropic.claude-opus-4-5": Config<keyof AllLlm>;
|
|
1594
1629
|
"anthropic.claude-haiku-4-5": Config<keyof AllLlm>;
|
|
1595
1630
|
"anthropic.claude-sonnet-4-5": Config<keyof AllLlm>;
|
|
1631
|
+
"anthropic.claude-opus-4-6": Config<keyof AllLlm>;
|
|
1596
1632
|
"anthropic.claude-opus-4-1": Config<keyof AllLlm>;
|
|
1597
1633
|
"anthropic.claude-sonnet-4": Config<keyof AllLlm>;
|
|
1598
1634
|
"anthropic.claude-opus-4": Config<keyof AllLlm>;
|
package/dist/index.js
CHANGED
|
@@ -2833,15 +2833,15 @@ var anthropic = {
|
|
|
2833
2833
|
"claude-opus-4-7"
|
|
2834
2834
|
),
|
|
2835
2835
|
// Claude 4.6 models
|
|
2836
|
-
"anthropic.claude-opus-4-6": withDefaultModel(
|
|
2837
|
-
anthropicChatV1,
|
|
2838
|
-
"claude-opus-4-6"
|
|
2839
|
-
),
|
|
2840
2836
|
"anthropic.claude-sonnet-4-6": withDefaultModel(
|
|
2841
2837
|
anthropicChatV1,
|
|
2842
2838
|
"claude-sonnet-4-6"
|
|
2843
2839
|
),
|
|
2844
2840
|
// Claude 4.5 models
|
|
2841
|
+
"anthropic.claude-opus-4-5": withDefaultModel(
|
|
2842
|
+
anthropicChatV1,
|
|
2843
|
+
"claude-opus-4-5"
|
|
2844
|
+
),
|
|
2845
2845
|
"anthropic.claude-haiku-4-5": withDefaultModel(
|
|
2846
2846
|
anthropicChatV1,
|
|
2847
2847
|
"claude-haiku-4-5"
|
|
@@ -2851,6 +2851,10 @@ var anthropic = {
|
|
|
2851
2851
|
"claude-sonnet-4-5"
|
|
2852
2852
|
),
|
|
2853
2853
|
// Deprecated
|
|
2854
|
+
"anthropic.claude-opus-4-6": withDefaultModel(
|
|
2855
|
+
anthropicChatV1,
|
|
2856
|
+
"claude-opus-4-6"
|
|
2857
|
+
),
|
|
2854
2858
|
"anthropic.claude-opus-4-1": withDefaultModel(
|
|
2855
2859
|
anthropicChatV1,
|
|
2856
2860
|
"claude-opus-4-1-20250805"
|
|
@@ -2887,12 +2891,7 @@ var xaiChatV1 = createOpenAiCompatibleConfiguration({
|
|
|
2887
2891
|
provider: "xai.chat",
|
|
2888
2892
|
endpoint: `https://api.x.ai/v1/chat/completions`,
|
|
2889
2893
|
apiKeyMapping: ["xAiApiKey", "XAI_API_KEY"],
|
|
2890
|
-
|
|
2891
|
-
// sent; grok-3-mini and the fast-non-reasoning variants don't accept it
|
|
2892
|
-
// either. Only grok-4.3 and grok-4.20-multi-agent support it, and neither
|
|
2893
|
-
// has a shorthand here yet. Leave the predicate empty so effort is dropped
|
|
2894
|
-
// for every currently-shipped xAI shorthand.
|
|
2895
|
-
isReasoningModel: () => false
|
|
2894
|
+
isReasoningModel: (model) => model === "grok-4.3"
|
|
2896
2895
|
});
|
|
2897
2896
|
var xai = {
|
|
2898
2897
|
"xai.chat.v1": xaiChatV1,
|
|
@@ -2901,7 +2900,13 @@ var xai = {
|
|
|
2901
2900
|
"xai.grok-3-mini": withDefaultModel(xaiChatV1, "grok-3-mini"),
|
|
2902
2901
|
"xai.grok-4": withDefaultModel(xaiChatV1, "grok-4"),
|
|
2903
2902
|
"xai.grok-4-fast": withDefaultModel(xaiChatV1, "grok-4-fast-non-reasoning"),
|
|
2904
|
-
"xai.grok-4-1-fast": withDefaultModel(xaiChatV1, "grok-4-1-fast-non-reasoning")
|
|
2903
|
+
"xai.grok-4-1-fast": withDefaultModel(xaiChatV1, "grok-4-1-fast-non-reasoning"),
|
|
2904
|
+
"xai.grok-4.3": withDefaultModel(xaiChatV1, "grok-4.3"),
|
|
2905
|
+
"xai.grok-4.20": withDefaultModel(xaiChatV1, "grok-4.20-0309-non-reasoning"),
|
|
2906
|
+
"xai.grok-4.20-reasoning": withDefaultModel(
|
|
2907
|
+
xaiChatV1,
|
|
2908
|
+
"grok-4.20-0309-reasoning"
|
|
2909
|
+
)
|
|
2905
2910
|
};
|
|
2906
2911
|
|
|
2907
2912
|
// src/llm/output/_utils/combineJsonl.ts
|
|
@@ -3012,7 +3017,10 @@ var ollama = {
|
|
|
3012
3017
|
"ollama.gemma3": withDefaultModel(ollamaChatV1, "gemma3"),
|
|
3013
3018
|
"ollama.mistral": withDefaultModel(ollamaChatV1, "mistral"),
|
|
3014
3019
|
"ollama.qwen2.5": withDefaultModel(ollamaChatV1, "qwen2.5"),
|
|
3015
|
-
"ollama.qwen3": withDefaultModel(ollamaChatV1, "qwen3")
|
|
3020
|
+
"ollama.qwen3": withDefaultModel(ollamaChatV1, "qwen3"),
|
|
3021
|
+
"ollama.qwen3.5": withDefaultModel(ollamaChatV1, "qwen3.5"),
|
|
3022
|
+
"ollama.gemma4": withDefaultModel(ollamaChatV1, "gemma4"),
|
|
3023
|
+
"ollama.gpt-oss": withDefaultModel(ollamaChatV1, "gpt-oss")
|
|
3016
3024
|
};
|
|
3017
3025
|
|
|
3018
3026
|
// src/llm/config/google/promptSanitizeMessageCallback.ts
|
|
@@ -3189,7 +3197,7 @@ var googleGeminiChatV1 = {
|
|
|
3189
3197
|
transform: (v, _s) => {
|
|
3190
3198
|
if (
|
|
3191
3199
|
// only supported reasoning models
|
|
3192
|
-
["gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-
|
|
3200
|
+
["gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite"].includes(
|
|
3193
3201
|
_s.model
|
|
3194
3202
|
) && typeof v === "string" && ["minimal", "low", "medium", "high"].includes(v)
|
|
3195
3203
|
) {
|
|
@@ -3241,6 +3249,14 @@ var google = {
|
|
|
3241
3249
|
googleGeminiChatV1,
|
|
3242
3250
|
"gemini-2.5-pro"
|
|
3243
3251
|
),
|
|
3252
|
+
"google.gemini-3.1-flash-lite": withDefaultModel(
|
|
3253
|
+
googleGeminiChatV1,
|
|
3254
|
+
"gemini-3.1-flash-lite"
|
|
3255
|
+
),
|
|
3256
|
+
"google.gemini-3.5-flash": withDefaultModel(
|
|
3257
|
+
googleGeminiChatV1,
|
|
3258
|
+
"gemini-3.5-flash"
|
|
3259
|
+
),
|
|
3244
3260
|
// Deprecated
|
|
3245
3261
|
"google.gemini-2.0-flash": withDefaultModel(
|
|
3246
3262
|
googleGeminiChatV1,
|
package/dist/index.mjs
CHANGED
|
@@ -2770,15 +2770,15 @@ var anthropic = {
|
|
|
2770
2770
|
"claude-opus-4-7"
|
|
2771
2771
|
),
|
|
2772
2772
|
// Claude 4.6 models
|
|
2773
|
-
"anthropic.claude-opus-4-6": withDefaultModel(
|
|
2774
|
-
anthropicChatV1,
|
|
2775
|
-
"claude-opus-4-6"
|
|
2776
|
-
),
|
|
2777
2773
|
"anthropic.claude-sonnet-4-6": withDefaultModel(
|
|
2778
2774
|
anthropicChatV1,
|
|
2779
2775
|
"claude-sonnet-4-6"
|
|
2780
2776
|
),
|
|
2781
2777
|
// Claude 4.5 models
|
|
2778
|
+
"anthropic.claude-opus-4-5": withDefaultModel(
|
|
2779
|
+
anthropicChatV1,
|
|
2780
|
+
"claude-opus-4-5"
|
|
2781
|
+
),
|
|
2782
2782
|
"anthropic.claude-haiku-4-5": withDefaultModel(
|
|
2783
2783
|
anthropicChatV1,
|
|
2784
2784
|
"claude-haiku-4-5"
|
|
@@ -2788,6 +2788,10 @@ var anthropic = {
|
|
|
2788
2788
|
"claude-sonnet-4-5"
|
|
2789
2789
|
),
|
|
2790
2790
|
// Deprecated
|
|
2791
|
+
"anthropic.claude-opus-4-6": withDefaultModel(
|
|
2792
|
+
anthropicChatV1,
|
|
2793
|
+
"claude-opus-4-6"
|
|
2794
|
+
),
|
|
2791
2795
|
"anthropic.claude-opus-4-1": withDefaultModel(
|
|
2792
2796
|
anthropicChatV1,
|
|
2793
2797
|
"claude-opus-4-1-20250805"
|
|
@@ -2824,12 +2828,7 @@ var xaiChatV1 = createOpenAiCompatibleConfiguration({
|
|
|
2824
2828
|
provider: "xai.chat",
|
|
2825
2829
|
endpoint: `https://api.x.ai/v1/chat/completions`,
|
|
2826
2830
|
apiKeyMapping: ["xAiApiKey", "XAI_API_KEY"],
|
|
2827
|
-
|
|
2828
|
-
// sent; grok-3-mini and the fast-non-reasoning variants don't accept it
|
|
2829
|
-
// either. Only grok-4.3 and grok-4.20-multi-agent support it, and neither
|
|
2830
|
-
// has a shorthand here yet. Leave the predicate empty so effort is dropped
|
|
2831
|
-
// for every currently-shipped xAI shorthand.
|
|
2832
|
-
isReasoningModel: () => false
|
|
2831
|
+
isReasoningModel: (model) => model === "grok-4.3"
|
|
2833
2832
|
});
|
|
2834
2833
|
var xai = {
|
|
2835
2834
|
"xai.chat.v1": xaiChatV1,
|
|
@@ -2838,7 +2837,13 @@ var xai = {
|
|
|
2838
2837
|
"xai.grok-3-mini": withDefaultModel(xaiChatV1, "grok-3-mini"),
|
|
2839
2838
|
"xai.grok-4": withDefaultModel(xaiChatV1, "grok-4"),
|
|
2840
2839
|
"xai.grok-4-fast": withDefaultModel(xaiChatV1, "grok-4-fast-non-reasoning"),
|
|
2841
|
-
"xai.grok-4-1-fast": withDefaultModel(xaiChatV1, "grok-4-1-fast-non-reasoning")
|
|
2840
|
+
"xai.grok-4-1-fast": withDefaultModel(xaiChatV1, "grok-4-1-fast-non-reasoning"),
|
|
2841
|
+
"xai.grok-4.3": withDefaultModel(xaiChatV1, "grok-4.3"),
|
|
2842
|
+
"xai.grok-4.20": withDefaultModel(xaiChatV1, "grok-4.20-0309-non-reasoning"),
|
|
2843
|
+
"xai.grok-4.20-reasoning": withDefaultModel(
|
|
2844
|
+
xaiChatV1,
|
|
2845
|
+
"grok-4.20-0309-reasoning"
|
|
2846
|
+
)
|
|
2842
2847
|
};
|
|
2843
2848
|
|
|
2844
2849
|
// src/llm/output/_utils/combineJsonl.ts
|
|
@@ -2949,7 +2954,10 @@ var ollama = {
|
|
|
2949
2954
|
"ollama.gemma3": withDefaultModel(ollamaChatV1, "gemma3"),
|
|
2950
2955
|
"ollama.mistral": withDefaultModel(ollamaChatV1, "mistral"),
|
|
2951
2956
|
"ollama.qwen2.5": withDefaultModel(ollamaChatV1, "qwen2.5"),
|
|
2952
|
-
"ollama.qwen3": withDefaultModel(ollamaChatV1, "qwen3")
|
|
2957
|
+
"ollama.qwen3": withDefaultModel(ollamaChatV1, "qwen3"),
|
|
2958
|
+
"ollama.qwen3.5": withDefaultModel(ollamaChatV1, "qwen3.5"),
|
|
2959
|
+
"ollama.gemma4": withDefaultModel(ollamaChatV1, "gemma4"),
|
|
2960
|
+
"ollama.gpt-oss": withDefaultModel(ollamaChatV1, "gpt-oss")
|
|
2953
2961
|
};
|
|
2954
2962
|
|
|
2955
2963
|
// src/llm/config/google/promptSanitizeMessageCallback.ts
|
|
@@ -3126,7 +3134,7 @@ var googleGeminiChatV1 = {
|
|
|
3126
3134
|
transform: (v, _s) => {
|
|
3127
3135
|
if (
|
|
3128
3136
|
// only supported reasoning models
|
|
3129
|
-
["gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-
|
|
3137
|
+
["gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite"].includes(
|
|
3130
3138
|
_s.model
|
|
3131
3139
|
) && typeof v === "string" && ["minimal", "low", "medium", "high"].includes(v)
|
|
3132
3140
|
) {
|
|
@@ -3178,6 +3186,14 @@ var google = {
|
|
|
3178
3186
|
googleGeminiChatV1,
|
|
3179
3187
|
"gemini-2.5-pro"
|
|
3180
3188
|
),
|
|
3189
|
+
"google.gemini-3.1-flash-lite": withDefaultModel(
|
|
3190
|
+
googleGeminiChatV1,
|
|
3191
|
+
"gemini-3.1-flash-lite"
|
|
3192
|
+
),
|
|
3193
|
+
"google.gemini-3.5-flash": withDefaultModel(
|
|
3194
|
+
googleGeminiChatV1,
|
|
3195
|
+
"gemini-3.5-flash"
|
|
3196
|
+
),
|
|
3181
3197
|
// Deprecated
|
|
3182
3198
|
"google.gemini-2.0-flash": withDefaultModel(
|
|
3183
3199
|
googleGeminiChatV1,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "llm-exe",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.11",
|
|
4
4
|
"description": "Simplify building LLM-powered apps with easy-to-use base components, supporting text and chat-based prompts with handlebars template engine, output parsers, and flexible function calling capabilities.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"lint": "eslint .",
|
|
54
54
|
"format:check": "prettier --check \"src\"",
|
|
55
55
|
"format:write": "prettier --write \"src\"",
|
|
56
|
-
"publish-main": "npm publish",
|
|
57
|
-
"publish-beta": "npm publish --tag beta"
|
|
56
|
+
"publish-main": "npm publish --provenance",
|
|
57
|
+
"publish-beta": "npm publish --provenance --tag beta"
|
|
58
58
|
},
|
|
59
59
|
"author": "Greg Reindel",
|
|
60
60
|
"license": "MIT",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
},
|
|
96
96
|
"repository": {
|
|
97
97
|
"type": "git",
|
|
98
|
-
"url": "https://github.com/llm-exe/llm-exe"
|
|
98
|
+
"url": "git+https://github.com/llm-exe/llm-exe.git"
|
|
99
99
|
},
|
|
100
100
|
"homepage": "https://llm-exe.com"
|
|
101
101
|
}
|