llm-exe 2.3.8 → 2.3.10

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 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-opus-4-6": {
1136
+ "anthropic.claude-sonnet-4-6": {
1137
1137
  input: Omit<AnthropicRequest, "model">;
1138
1138
  };
1139
- "anthropic.claude-sonnet-4-6": {
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,9 @@ 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
+ };
1184
1190
  "google.gemini-2.0-flash": {
1185
1191
  input: Omit<GeminiRequest, "model">;
1186
1192
  };
@@ -1208,6 +1214,9 @@ type AllUseLlmOptions = AllLlm & {
1208
1214
  "xai.grok-4-1-fast": {
1209
1215
  input: Omit<XAiRequest, "model">;
1210
1216
  };
1217
+ "xai.grok-4.3": {
1218
+ input: Omit<XAiRequest, "model">;
1219
+ };
1211
1220
  "ollama.deepseek-r1": {
1212
1221
  input: GenericLLm;
1213
1222
  };
@@ -1565,6 +1574,7 @@ declare const configs: {
1565
1574
  "google.gemini-2.5-flash": Config<keyof AllLlm>;
1566
1575
  "google.gemini-2.5-flash-lite": Config<keyof AllLlm>;
1567
1576
  "google.gemini-2.5-pro": Config<keyof AllLlm>;
1577
+ "google.gemini-3.1-flash-lite": Config<keyof AllLlm>;
1568
1578
  "google.gemini-2.0-flash": Config<keyof AllLlm>;
1569
1579
  "google.gemini-2.0-flash-lite": Config<keyof AllLlm>;
1570
1580
  "google.gemini-1.5-pro": Config<keyof AllLlm>;
@@ -1585,14 +1595,16 @@ declare const configs: {
1585
1595
  "xai.grok-4": Config<keyof AllLlm>;
1586
1596
  "xai.grok-4-fast": Config<keyof AllLlm>;
1587
1597
  "xai.grok-4-1-fast": Config<keyof AllLlm>;
1598
+ "xai.grok-4.3": Config<keyof AllLlm>;
1588
1599
  "amazon:anthropic.chat.v1": Config<keyof AllLlm>;
1589
1600
  "amazon:meta.chat.v1": Config<keyof AllLlm>;
1590
1601
  "anthropic.chat.v1": Config<keyof AllLlm>;
1591
1602
  "anthropic.claude-opus-4-7": Config<keyof AllLlm>;
1592
- "anthropic.claude-opus-4-6": Config<keyof AllLlm>;
1593
1603
  "anthropic.claude-sonnet-4-6": Config<keyof AllLlm>;
1604
+ "anthropic.claude-opus-4-5": Config<keyof AllLlm>;
1594
1605
  "anthropic.claude-haiku-4-5": Config<keyof AllLlm>;
1595
1606
  "anthropic.claude-sonnet-4-5": Config<keyof AllLlm>;
1607
+ "anthropic.claude-opus-4-6": Config<keyof AllLlm>;
1596
1608
  "anthropic.claude-opus-4-1": Config<keyof AllLlm>;
1597
1609
  "anthropic.claude-sonnet-4": Config<keyof AllLlm>;
1598
1610
  "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-opus-4-6": {
1136
+ "anthropic.claude-sonnet-4-6": {
1137
1137
  input: Omit<AnthropicRequest, "model">;
1138
1138
  };
1139
- "anthropic.claude-sonnet-4-6": {
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,9 @@ 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
+ };
1184
1190
  "google.gemini-2.0-flash": {
1185
1191
  input: Omit<GeminiRequest, "model">;
1186
1192
  };
@@ -1208,6 +1214,9 @@ type AllUseLlmOptions = AllLlm & {
1208
1214
  "xai.grok-4-1-fast": {
1209
1215
  input: Omit<XAiRequest, "model">;
1210
1216
  };
1217
+ "xai.grok-4.3": {
1218
+ input: Omit<XAiRequest, "model">;
1219
+ };
1211
1220
  "ollama.deepseek-r1": {
1212
1221
  input: GenericLLm;
1213
1222
  };
@@ -1565,6 +1574,7 @@ declare const configs: {
1565
1574
  "google.gemini-2.5-flash": Config<keyof AllLlm>;
1566
1575
  "google.gemini-2.5-flash-lite": Config<keyof AllLlm>;
1567
1576
  "google.gemini-2.5-pro": Config<keyof AllLlm>;
1577
+ "google.gemini-3.1-flash-lite": Config<keyof AllLlm>;
1568
1578
  "google.gemini-2.0-flash": Config<keyof AllLlm>;
1569
1579
  "google.gemini-2.0-flash-lite": Config<keyof AllLlm>;
1570
1580
  "google.gemini-1.5-pro": Config<keyof AllLlm>;
@@ -1585,14 +1595,16 @@ declare const configs: {
1585
1595
  "xai.grok-4": Config<keyof AllLlm>;
1586
1596
  "xai.grok-4-fast": Config<keyof AllLlm>;
1587
1597
  "xai.grok-4-1-fast": Config<keyof AllLlm>;
1598
+ "xai.grok-4.3": Config<keyof AllLlm>;
1588
1599
  "amazon:anthropic.chat.v1": Config<keyof AllLlm>;
1589
1600
  "amazon:meta.chat.v1": Config<keyof AllLlm>;
1590
1601
  "anthropic.chat.v1": Config<keyof AllLlm>;
1591
1602
  "anthropic.claude-opus-4-7": Config<keyof AllLlm>;
1592
- "anthropic.claude-opus-4-6": Config<keyof AllLlm>;
1593
1603
  "anthropic.claude-sonnet-4-6": Config<keyof AllLlm>;
1604
+ "anthropic.claude-opus-4-5": Config<keyof AllLlm>;
1594
1605
  "anthropic.claude-haiku-4-5": Config<keyof AllLlm>;
1595
1606
  "anthropic.claude-sonnet-4-5": Config<keyof AllLlm>;
1607
+ "anthropic.claude-opus-4-6": Config<keyof AllLlm>;
1596
1608
  "anthropic.claude-opus-4-1": Config<keyof AllLlm>;
1597
1609
  "anthropic.claude-sonnet-4": Config<keyof AllLlm>;
1598
1610
  "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
- // Per xAI docs (checked 2026-05-13), grok-4 errors if `reasoning_effort` is
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,8 @@ 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
2905
  };
2906
2906
 
2907
2907
  // src/llm/output/_utils/combineJsonl.ts
@@ -3189,7 +3189,7 @@ var googleGeminiChatV1 = {
3189
3189
  transform: (v, _s) => {
3190
3190
  if (
3191
3191
  // only supported reasoning models
3192
- ["gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-light"].includes(
3192
+ ["gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite"].includes(
3193
3193
  _s.model
3194
3194
  ) && typeof v === "string" && ["minimal", "low", "medium", "high"].includes(v)
3195
3195
  ) {
@@ -3241,6 +3241,10 @@ var google = {
3241
3241
  googleGeminiChatV1,
3242
3242
  "gemini-2.5-pro"
3243
3243
  ),
3244
+ "google.gemini-3.1-flash-lite": withDefaultModel(
3245
+ googleGeminiChatV1,
3246
+ "gemini-3.1-flash-lite"
3247
+ ),
3244
3248
  // Deprecated
3245
3249
  "google.gemini-2.0-flash": withDefaultModel(
3246
3250
  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
- // Per xAI docs (checked 2026-05-13), grok-4 errors if `reasoning_effort` is
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,8 @@ 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
2842
  };
2843
2843
 
2844
2844
  // src/llm/output/_utils/combineJsonl.ts
@@ -3126,7 +3126,7 @@ var googleGeminiChatV1 = {
3126
3126
  transform: (v, _s) => {
3127
3127
  if (
3128
3128
  // only supported reasoning models
3129
- ["gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-light"].includes(
3129
+ ["gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite"].includes(
3130
3130
  _s.model
3131
3131
  ) && typeof v === "string" && ["minimal", "low", "medium", "high"].includes(v)
3132
3132
  ) {
@@ -3178,6 +3178,10 @@ var google = {
3178
3178
  googleGeminiChatV1,
3179
3179
  "gemini-2.5-pro"
3180
3180
  ),
3181
+ "google.gemini-3.1-flash-lite": withDefaultModel(
3182
+ googleGeminiChatV1,
3183
+ "gemini-3.1-flash-lite"
3184
+ ),
3181
3185
  // Deprecated
3182
3186
  "google.gemini-2.0-flash": withDefaultModel(
3183
3187
  googleGeminiChatV1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "llm-exe",
3
- "version": "2.3.8",
3
+ "version": "2.3.10",
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/gregreindel/llm-exe"
98
+ "url": "git+https://github.com/llm-exe/llm-exe.git"
99
99
  },
100
100
  "homepage": "https://llm-exe.com"
101
101
  }
package/readme.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # llm-exe
2
2
 
3
- [![tests](https://github.com/gregreindel/llm-exe/actions/workflows/tests.yml/badge.svg)](https://github.com/gregreindel/llm-exe/actions/workflows/tests.yml) [![Coverage Status](https://coveralls.io/repos/github/gregreindel/llm-exe/badge.svg?branch=main)](https://coveralls.io/github/gregreindel/llm-exe?branch=main) [![npm version](https://badge.fury.io/js/llm-exe.svg)](https://badge.fury.io/js/llm-exe)
3
+ [![tests](https://github.com/llm-exe/llm-exe/actions/workflows/tests.yml/badge.svg)](https://github.com/llm-exe/llm-exe/actions/workflows/tests.yml) [![Coverage Status](https://coveralls.io/repos/github/llm-exe/llm-exe/badge.svg?branch=main)](https://coveralls.io/github/llm-exe/llm-exe?branch=main) [![npm version](https://badge.fury.io/js/llm-exe.svg)](https://badge.fury.io/js/llm-exe)
4
4
 
5
5
  A package that provides simplified base components to make building and maintaining LLM-powered applications easier.
6
6