llm-exe 3.0.1 → 3.0.2

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
@@ -1279,6 +1279,15 @@ type AllLlm = {
1279
1279
  };
1280
1280
  };
1281
1281
  type AllUseLlmOptions = AllLlm & {
1282
+ "openai.gpt-5.5": {
1283
+ input: Omit<OpenAiRequest, "model">;
1284
+ };
1285
+ "openai.gpt-5.4": {
1286
+ input: Omit<OpenAiRequest, "model">;
1287
+ };
1288
+ "openai.gpt-5.4-mini": {
1289
+ input: Omit<OpenAiRequest, "model">;
1290
+ };
1282
1291
  "openai.gpt-5.2": {
1283
1292
  input: Omit<OpenAiRequest, "model">;
1284
1293
  };
@@ -1312,6 +1321,9 @@ type AllUseLlmOptions = AllLlm & {
1312
1321
  "openai.o4-mini": {
1313
1322
  input: Omit<OpenAiRequest, "model">;
1314
1323
  };
1324
+ "anthropic.claude-fable-5": {
1325
+ input: Omit<AnthropicRequest, "model">;
1326
+ };
1315
1327
  "anthropic.claude-opus-4-8": {
1316
1328
  input: Omit<AnthropicRequest, "model">;
1317
1329
  };
@@ -1333,9 +1345,6 @@ type AllUseLlmOptions = AllLlm & {
1333
1345
  "anthropic.claude-opus-4-6": {
1334
1346
  input: Omit<AnthropicRequest, "model">;
1335
1347
  };
1336
- "anthropic.claude-opus-4-1": {
1337
- input: Omit<AnthropicRequest, "model">;
1338
- };
1339
1348
  "anthropic.claude-sonnet-4-0": {
1340
1349
  input: Omit<AnthropicRequest, "model">;
1341
1350
  };
@@ -2053,9 +2062,9 @@ declare const configs: {
2053
2062
  "anthropic.claude-3-7-sonnet": Config<any>;
2054
2063
  "anthropic.claude-opus-4": Config<any>;
2055
2064
  "anthropic.claude-sonnet-4": Config<any>;
2056
- "anthropic.claude-opus-4-1": Config<any>;
2057
2065
  "anthropic.claude-opus-4-6": Config<any>;
2058
2066
  "anthropic.chat.v1": Config<keyof AllLlm>;
2067
+ "anthropic.claude-fable-5": Config<keyof AllLlm>;
2059
2068
  "anthropic.claude-opus-4-8": Config<keyof AllLlm>;
2060
2069
  "anthropic.claude-opus-4-7": Config<keyof AllLlm>;
2061
2070
  "anthropic.claude-sonnet-4-6": Config<keyof AllLlm>;
@@ -2065,6 +2074,9 @@ declare const configs: {
2065
2074
  "openai.o4-mini": Config<any>;
2066
2075
  "openai.chat.v1": Config<keyof AllLlm>;
2067
2076
  "openai.chat-mock.v1": Config<keyof AllLlm>;
2077
+ "openai.gpt-5.5": Config<keyof AllLlm>;
2078
+ "openai.gpt-5.4": Config<keyof AllLlm>;
2079
+ "openai.gpt-5.4-mini": Config<keyof AllLlm>;
2068
2080
  "openai.gpt-5.2": Config<keyof AllLlm>;
2069
2081
  "openai.gpt-5-mini": Config<keyof AllLlm>;
2070
2082
  "openai.gpt-5-nano": Config<keyof AllLlm>;
package/dist/index.d.ts CHANGED
@@ -1279,6 +1279,15 @@ type AllLlm = {
1279
1279
  };
1280
1280
  };
1281
1281
  type AllUseLlmOptions = AllLlm & {
1282
+ "openai.gpt-5.5": {
1283
+ input: Omit<OpenAiRequest, "model">;
1284
+ };
1285
+ "openai.gpt-5.4": {
1286
+ input: Omit<OpenAiRequest, "model">;
1287
+ };
1288
+ "openai.gpt-5.4-mini": {
1289
+ input: Omit<OpenAiRequest, "model">;
1290
+ };
1282
1291
  "openai.gpt-5.2": {
1283
1292
  input: Omit<OpenAiRequest, "model">;
1284
1293
  };
@@ -1312,6 +1321,9 @@ type AllUseLlmOptions = AllLlm & {
1312
1321
  "openai.o4-mini": {
1313
1322
  input: Omit<OpenAiRequest, "model">;
1314
1323
  };
1324
+ "anthropic.claude-fable-5": {
1325
+ input: Omit<AnthropicRequest, "model">;
1326
+ };
1315
1327
  "anthropic.claude-opus-4-8": {
1316
1328
  input: Omit<AnthropicRequest, "model">;
1317
1329
  };
@@ -1333,9 +1345,6 @@ type AllUseLlmOptions = AllLlm & {
1333
1345
  "anthropic.claude-opus-4-6": {
1334
1346
  input: Omit<AnthropicRequest, "model">;
1335
1347
  };
1336
- "anthropic.claude-opus-4-1": {
1337
- input: Omit<AnthropicRequest, "model">;
1338
- };
1339
1348
  "anthropic.claude-sonnet-4-0": {
1340
1349
  input: Omit<AnthropicRequest, "model">;
1341
1350
  };
@@ -2053,9 +2062,9 @@ declare const configs: {
2053
2062
  "anthropic.claude-3-7-sonnet": Config<any>;
2054
2063
  "anthropic.claude-opus-4": Config<any>;
2055
2064
  "anthropic.claude-sonnet-4": Config<any>;
2056
- "anthropic.claude-opus-4-1": Config<any>;
2057
2065
  "anthropic.claude-opus-4-6": Config<any>;
2058
2066
  "anthropic.chat.v1": Config<keyof AllLlm>;
2067
+ "anthropic.claude-fable-5": Config<keyof AllLlm>;
2059
2068
  "anthropic.claude-opus-4-8": Config<keyof AllLlm>;
2060
2069
  "anthropic.claude-opus-4-7": Config<keyof AllLlm>;
2061
2070
  "anthropic.claude-sonnet-4-6": Config<keyof AllLlm>;
@@ -2065,6 +2074,9 @@ declare const configs: {
2065
2074
  "openai.o4-mini": Config<any>;
2066
2075
  "openai.chat.v1": Config<keyof AllLlm>;
2067
2076
  "openai.chat-mock.v1": Config<keyof AllLlm>;
2077
+ "openai.gpt-5.5": Config<keyof AllLlm>;
2078
+ "openai.gpt-5.4": Config<keyof AllLlm>;
2079
+ "openai.gpt-5.4-mini": Config<keyof AllLlm>;
2068
2080
  "openai.gpt-5.2": Config<keyof AllLlm>;
2069
2081
  "openai.gpt-5-mini": Config<keyof AllLlm>;
2070
2082
  "openai.gpt-5-nano": Config<keyof AllLlm>;
package/dist/index.js CHANGED
@@ -4344,6 +4344,9 @@ var openai = {
4344
4344
  "openai.chat.v1": openAiChatV1,
4345
4345
  "openai.chat-mock.v1": openAiChatMockV1,
4346
4346
  // GPT-5 family
4347
+ "openai.gpt-5.5": withDefaultModel(openAiChatV1, "gpt-5.5"),
4348
+ "openai.gpt-5.4": withDefaultModel(openAiChatV1, "gpt-5.4"),
4349
+ "openai.gpt-5.4-mini": withDefaultModel(openAiChatV1, "gpt-5.4-mini"),
4347
4350
  "openai.gpt-5.2": withDefaultModel(openAiChatV1, "gpt-5.2"),
4348
4351
  "openai.gpt-5-mini": withDefaultModel(openAiChatV1, "gpt-5-mini"),
4349
4352
  "openai.gpt-5-nano": withDefaultModel(openAiChatV1, "gpt-5-nano"),
@@ -4699,7 +4702,11 @@ var bedrock = {
4699
4702
 
4700
4703
  // src/llm/config/anthropic/index.ts
4701
4704
  var ANTHROPIC_VERSION = "2023-06-01";
4702
- var MODELS_REJECTING_SAMPLING_PARAMS = ["claude-opus-4-7", "claude-opus-4-8"];
4705
+ var MODELS_REJECTING_SAMPLING_PARAMS = [
4706
+ "claude-opus-4-7",
4707
+ "claude-opus-4-8",
4708
+ "claude-fable-5"
4709
+ ];
4703
4710
  var isClaude4x = (model) => /^claude-(opus|sonnet|haiku)-4-/.test(model);
4704
4711
  var dropIfModelRejectsSamplingParams = (v, body) => MODELS_REJECTING_SAMPLING_PARAMS.includes(body.model) ? void 0 : v;
4705
4712
  var topPTransform = (v, body) => {
@@ -4720,6 +4727,15 @@ var anthropicChatV1 = {
4720
4727
  required: [true, "maxTokens required"],
4721
4728
  default: 4096
4722
4729
  },
4730
+ // Every key mapped in mapBody must also be declared here:
4731
+ // stateFromOptions picks only declared option keys, so an undeclared
4732
+ // key never reaches mapBody (see issue #661).
4733
+ temperature: {},
4734
+ topP: {},
4735
+ topK: {},
4736
+ stopSequences: {},
4737
+ metadata: {},
4738
+ serviceTier: {},
4723
4739
  anthropicApiKey: {
4724
4740
  default: getEnvironmentVariable("ANTHROPIC_API_KEY")
4725
4741
  }
@@ -4753,9 +4769,8 @@ var anthropicChatV1 = {
4753
4769
  stopSequences: {
4754
4770
  key: "stop_sequences"
4755
4771
  },
4756
- stream: {
4757
- key: "stream"
4758
- },
4772
+ // No `stream` mapping: the request pipeline has no SSE support, so
4773
+ // forwarding stream=true would return an unparseable response.
4759
4774
  metadata: {
4760
4775
  key: "metadata"
4761
4776
  },
@@ -4784,6 +4799,11 @@ var anthropicChatV1 = {
4784
4799
  };
4785
4800
  var anthropic = {
4786
4801
  "anthropic.chat.v1": anthropicChatV1,
4802
+ // Claude Fable 5 models
4803
+ "anthropic.claude-fable-5": withDefaultModel(
4804
+ anthropicChatV1,
4805
+ "claude-fable-5"
4806
+ ),
4787
4807
  // Claude 4.8 models
4788
4808
  "anthropic.claude-opus-4-8": withDefaultModel(
4789
4809
  anthropicChatV1,
@@ -4817,10 +4837,9 @@ var anthropic = {
4817
4837
  config: withDefaultModel(anthropicChatV1, "claude-opus-4-6"),
4818
4838
  message: 'Shorthand "anthropic.claude-opus-4-6" is deprecated and may be removed in a future release.'
4819
4839
  }),
4820
- ...deprecateShorthand("anthropic.claude-opus-4-1", {
4821
- config: withDefaultModel(anthropicChatV1, "claude-opus-4-1-20250805"),
4822
- message: 'Shorthand "anthropic.claude-opus-4-1" is deprecated and may be removed in a future release.'
4823
- }),
4840
+ // NOTE: "anthropic.claude-opus-4-1" (claude-opus-4-1-20250805) was removed —
4841
+ // Anthropic retires that model on Aug 5, 2026. Migrate to
4842
+ // anthropic.claude-opus-4-5/-6/-7/-8.
4824
4843
  ...deprecateShorthand("anthropic.claude-sonnet-4", {
4825
4844
  config: withDefaultModel(anthropicChatV1, "claude-sonnet-4-0"),
4826
4845
  message: 'Shorthand "anthropic.claude-sonnet-4" is deprecated and may be removed in a future release.'
package/dist/index.mjs CHANGED
@@ -4276,6 +4276,9 @@ var openai = {
4276
4276
  "openai.chat.v1": openAiChatV1,
4277
4277
  "openai.chat-mock.v1": openAiChatMockV1,
4278
4278
  // GPT-5 family
4279
+ "openai.gpt-5.5": withDefaultModel(openAiChatV1, "gpt-5.5"),
4280
+ "openai.gpt-5.4": withDefaultModel(openAiChatV1, "gpt-5.4"),
4281
+ "openai.gpt-5.4-mini": withDefaultModel(openAiChatV1, "gpt-5.4-mini"),
4279
4282
  "openai.gpt-5.2": withDefaultModel(openAiChatV1, "gpt-5.2"),
4280
4283
  "openai.gpt-5-mini": withDefaultModel(openAiChatV1, "gpt-5-mini"),
4281
4284
  "openai.gpt-5-nano": withDefaultModel(openAiChatV1, "gpt-5-nano"),
@@ -4631,7 +4634,11 @@ var bedrock = {
4631
4634
 
4632
4635
  // src/llm/config/anthropic/index.ts
4633
4636
  var ANTHROPIC_VERSION = "2023-06-01";
4634
- var MODELS_REJECTING_SAMPLING_PARAMS = ["claude-opus-4-7", "claude-opus-4-8"];
4637
+ var MODELS_REJECTING_SAMPLING_PARAMS = [
4638
+ "claude-opus-4-7",
4639
+ "claude-opus-4-8",
4640
+ "claude-fable-5"
4641
+ ];
4635
4642
  var isClaude4x = (model) => /^claude-(opus|sonnet|haiku)-4-/.test(model);
4636
4643
  var dropIfModelRejectsSamplingParams = (v, body) => MODELS_REJECTING_SAMPLING_PARAMS.includes(body.model) ? void 0 : v;
4637
4644
  var topPTransform = (v, body) => {
@@ -4652,6 +4659,15 @@ var anthropicChatV1 = {
4652
4659
  required: [true, "maxTokens required"],
4653
4660
  default: 4096
4654
4661
  },
4662
+ // Every key mapped in mapBody must also be declared here:
4663
+ // stateFromOptions picks only declared option keys, so an undeclared
4664
+ // key never reaches mapBody (see issue #661).
4665
+ temperature: {},
4666
+ topP: {},
4667
+ topK: {},
4668
+ stopSequences: {},
4669
+ metadata: {},
4670
+ serviceTier: {},
4655
4671
  anthropicApiKey: {
4656
4672
  default: getEnvironmentVariable("ANTHROPIC_API_KEY")
4657
4673
  }
@@ -4685,9 +4701,8 @@ var anthropicChatV1 = {
4685
4701
  stopSequences: {
4686
4702
  key: "stop_sequences"
4687
4703
  },
4688
- stream: {
4689
- key: "stream"
4690
- },
4704
+ // No `stream` mapping: the request pipeline has no SSE support, so
4705
+ // forwarding stream=true would return an unparseable response.
4691
4706
  metadata: {
4692
4707
  key: "metadata"
4693
4708
  },
@@ -4716,6 +4731,11 @@ var anthropicChatV1 = {
4716
4731
  };
4717
4732
  var anthropic = {
4718
4733
  "anthropic.chat.v1": anthropicChatV1,
4734
+ // Claude Fable 5 models
4735
+ "anthropic.claude-fable-5": withDefaultModel(
4736
+ anthropicChatV1,
4737
+ "claude-fable-5"
4738
+ ),
4719
4739
  // Claude 4.8 models
4720
4740
  "anthropic.claude-opus-4-8": withDefaultModel(
4721
4741
  anthropicChatV1,
@@ -4749,10 +4769,9 @@ var anthropic = {
4749
4769
  config: withDefaultModel(anthropicChatV1, "claude-opus-4-6"),
4750
4770
  message: 'Shorthand "anthropic.claude-opus-4-6" is deprecated and may be removed in a future release.'
4751
4771
  }),
4752
- ...deprecateShorthand("anthropic.claude-opus-4-1", {
4753
- config: withDefaultModel(anthropicChatV1, "claude-opus-4-1-20250805"),
4754
- message: 'Shorthand "anthropic.claude-opus-4-1" is deprecated and may be removed in a future release.'
4755
- }),
4772
+ // NOTE: "anthropic.claude-opus-4-1" (claude-opus-4-1-20250805) was removed —
4773
+ // Anthropic retires that model on Aug 5, 2026. Migrate to
4774
+ // anthropic.claude-opus-4-5/-6/-7/-8.
4756
4775
  ...deprecateShorthand("anthropic.claude-sonnet-4", {
4757
4776
  config: withDefaultModel(anthropicChatV1, "claude-sonnet-4-0"),
4758
4777
  message: 'Shorthand "anthropic.claude-sonnet-4" is deprecated and may be removed in a future release.'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "llm-exe",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
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",
@@ -48,6 +48,7 @@
48
48
  "predocs:build": "npm run build:docs-examples && bash scripts/generate-llms-txt.sh",
49
49
  "docs:dev": "eval $(cat docs/.env) && concurrently \"vitepress dev docs\" \"npm run build:watch:docs-examples\"",
50
50
  "docs:build": "eval $(cat docs/.env) && vitepress build docs",
51
+ "postdocs:build": "node docs/.vitepress/scripts/verify-docs-build.mjs",
51
52
  "docs:update-providers": "ts-node --transpile-only -r tsconfig-paths/register docs/.vitepress/scripts/updateProviders.ts",
52
53
  "lint": "eslint .",
53
54
  "format:check": "prettier --check \"src\"",