llm-exe 2.3.4 → 2.3.5

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
@@ -1102,15 +1102,15 @@ type AllUseLlmOptions = AllLlm & {
1102
1102
  "anthropic.claude-opus-4-0": {
1103
1103
  input: Omit<AnthropicRequest, "model">;
1104
1104
  };
1105
- "anthropic.claude-3-7-sonnet": {
1106
- input: Omit<AnthropicRequest, "model">;
1107
- };
1108
1105
  "anthropic.claude-sonnet-4": {
1109
1106
  input: Omit<AnthropicRequest, "model">;
1110
1107
  };
1111
1108
  "anthropic.claude-opus-4": {
1112
1109
  input: Omit<AnthropicRequest, "model">;
1113
1110
  };
1111
+ "anthropic.claude-3-7-sonnet": {
1112
+ input: Omit<AnthropicRequest, "model">;
1113
+ };
1114
1114
  "anthropic.claude-3-5-sonnet": {
1115
1115
  input: Omit<AnthropicRequest, "model">;
1116
1116
  };
package/dist/index.d.ts CHANGED
@@ -1102,15 +1102,15 @@ type AllUseLlmOptions = AllLlm & {
1102
1102
  "anthropic.claude-opus-4-0": {
1103
1103
  input: Omit<AnthropicRequest, "model">;
1104
1104
  };
1105
- "anthropic.claude-3-7-sonnet": {
1106
- input: Omit<AnthropicRequest, "model">;
1107
- };
1108
1105
  "anthropic.claude-sonnet-4": {
1109
1106
  input: Omit<AnthropicRequest, "model">;
1110
1107
  };
1111
1108
  "anthropic.claude-opus-4": {
1112
1109
  input: Omit<AnthropicRequest, "model">;
1113
1110
  };
1111
+ "anthropic.claude-3-7-sonnet": {
1112
+ input: Omit<AnthropicRequest, "model">;
1113
+ };
1114
1114
  "anthropic.claude-3-5-sonnet": {
1115
1115
  input: Omit<AnthropicRequest, "model">;
1116
1116
  };
package/dist/index.js CHANGED
@@ -2314,7 +2314,12 @@ function createOpenAiCompatibleConfiguration(overrides) {
2314
2314
  options: {
2315
2315
  prompt: {},
2316
2316
  effort: {},
2317
+ temperature: {},
2317
2318
  topP: {},
2319
+ maxTokens: {},
2320
+ stopSequences: {},
2321
+ frequencyPenalty: {},
2322
+ logitBias: {},
2318
2323
  useJson: {},
2319
2324
  [apiKeyPropertyKey]: {
2320
2325
  default: getEnvironmentVariable(apiKeyPropertyValue)
@@ -2330,9 +2335,24 @@ function createOpenAiCompatibleConfiguration(overrides) {
2330
2335
  model: {
2331
2336
  key: "model"
2332
2337
  },
2338
+ temperature: {
2339
+ key: "temperature"
2340
+ },
2333
2341
  topP: {
2334
2342
  key: "top_p"
2335
2343
  },
2344
+ maxTokens: {
2345
+ key: "max_tokens"
2346
+ },
2347
+ stopSequences: {
2348
+ key: "stop"
2349
+ },
2350
+ frequencyPenalty: {
2351
+ key: "frequency_penalty"
2352
+ },
2353
+ logitBias: {
2354
+ key: "logit_bias"
2355
+ },
2336
2356
  useJson: {
2337
2357
  key: "response_format.type",
2338
2358
  transform: (v) => v ? "json_object" : "text"
@@ -2791,11 +2811,11 @@ var anthropic = {
2791
2811
  anthropicChatV1,
2792
2812
  "claude-opus-4-0"
2793
2813
  ),
2814
+ // Deprecated
2794
2815
  "anthropic.claude-3-7-sonnet": withDefaultModel(
2795
2816
  anthropicChatV1,
2796
2817
  "claude-3-7-sonnet-20250219"
2797
2818
  ),
2798
- // Claude 3.5 models
2799
2819
  "anthropic.claude-3-5-sonnet": withDefaultModel(
2800
2820
  anthropicChatV1,
2801
2821
  "claude-3-5-sonnet-latest"
@@ -2804,7 +2824,6 @@ var anthropic = {
2804
2824
  anthropicChatV1,
2805
2825
  "claude-3-5-haiku-latest"
2806
2826
  ),
2807
- // Deprecated
2808
2827
  "anthropic.claude-3-opus": withDefaultModel(
2809
2828
  anthropicChatV1,
2810
2829
  "claude-3-opus-20240229"
package/dist/index.mjs CHANGED
@@ -2251,7 +2251,12 @@ function createOpenAiCompatibleConfiguration(overrides) {
2251
2251
  options: {
2252
2252
  prompt: {},
2253
2253
  effort: {},
2254
+ temperature: {},
2254
2255
  topP: {},
2256
+ maxTokens: {},
2257
+ stopSequences: {},
2258
+ frequencyPenalty: {},
2259
+ logitBias: {},
2255
2260
  useJson: {},
2256
2261
  [apiKeyPropertyKey]: {
2257
2262
  default: getEnvironmentVariable(apiKeyPropertyValue)
@@ -2267,9 +2272,24 @@ function createOpenAiCompatibleConfiguration(overrides) {
2267
2272
  model: {
2268
2273
  key: "model"
2269
2274
  },
2275
+ temperature: {
2276
+ key: "temperature"
2277
+ },
2270
2278
  topP: {
2271
2279
  key: "top_p"
2272
2280
  },
2281
+ maxTokens: {
2282
+ key: "max_tokens"
2283
+ },
2284
+ stopSequences: {
2285
+ key: "stop"
2286
+ },
2287
+ frequencyPenalty: {
2288
+ key: "frequency_penalty"
2289
+ },
2290
+ logitBias: {
2291
+ key: "logit_bias"
2292
+ },
2273
2293
  useJson: {
2274
2294
  key: "response_format.type",
2275
2295
  transform: (v) => v ? "json_object" : "text"
@@ -2728,11 +2748,11 @@ var anthropic = {
2728
2748
  anthropicChatV1,
2729
2749
  "claude-opus-4-0"
2730
2750
  ),
2751
+ // Deprecated
2731
2752
  "anthropic.claude-3-7-sonnet": withDefaultModel(
2732
2753
  anthropicChatV1,
2733
2754
  "claude-3-7-sonnet-20250219"
2734
2755
  ),
2735
- // Claude 3.5 models
2736
2756
  "anthropic.claude-3-5-sonnet": withDefaultModel(
2737
2757
  anthropicChatV1,
2738
2758
  "claude-3-5-sonnet-latest"
@@ -2741,7 +2761,6 @@ var anthropic = {
2741
2761
  anthropicChatV1,
2742
2762
  "claude-3-5-haiku-latest"
2743
2763
  ),
2744
- // Deprecated
2745
2764
  "anthropic.claude-3-opus": withDefaultModel(
2746
2765
  anthropicChatV1,
2747
2766
  "claude-3-opus-20240229"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "llm-exe",
3
- "version": "2.3.4",
3
+ "version": "2.3.5",
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",