llm-exe 2.3.3 → 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 +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +25 -2
- package/dist/index.mjs +25 -2
- package/package.json +1 -1
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
|
@@ -283,6 +283,10 @@ var BaseExecutor = class {
|
|
|
283
283
|
try {
|
|
284
284
|
hookFn(_metadata, this.getMetadata());
|
|
285
285
|
} catch (error) {
|
|
286
|
+
console.warn(
|
|
287
|
+
`[llm-exe] Error in "${String(hook)}" hook:`,
|
|
288
|
+
error
|
|
289
|
+
);
|
|
286
290
|
}
|
|
287
291
|
}
|
|
288
292
|
}
|
|
@@ -2310,7 +2314,12 @@ function createOpenAiCompatibleConfiguration(overrides) {
|
|
|
2310
2314
|
options: {
|
|
2311
2315
|
prompt: {},
|
|
2312
2316
|
effort: {},
|
|
2317
|
+
temperature: {},
|
|
2313
2318
|
topP: {},
|
|
2319
|
+
maxTokens: {},
|
|
2320
|
+
stopSequences: {},
|
|
2321
|
+
frequencyPenalty: {},
|
|
2322
|
+
logitBias: {},
|
|
2314
2323
|
useJson: {},
|
|
2315
2324
|
[apiKeyPropertyKey]: {
|
|
2316
2325
|
default: getEnvironmentVariable(apiKeyPropertyValue)
|
|
@@ -2326,9 +2335,24 @@ function createOpenAiCompatibleConfiguration(overrides) {
|
|
|
2326
2335
|
model: {
|
|
2327
2336
|
key: "model"
|
|
2328
2337
|
},
|
|
2338
|
+
temperature: {
|
|
2339
|
+
key: "temperature"
|
|
2340
|
+
},
|
|
2329
2341
|
topP: {
|
|
2330
2342
|
key: "top_p"
|
|
2331
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
|
+
},
|
|
2332
2356
|
useJson: {
|
|
2333
2357
|
key: "response_format.type",
|
|
2334
2358
|
transform: (v) => v ? "json_object" : "text"
|
|
@@ -2787,11 +2811,11 @@ var anthropic = {
|
|
|
2787
2811
|
anthropicChatV1,
|
|
2788
2812
|
"claude-opus-4-0"
|
|
2789
2813
|
),
|
|
2814
|
+
// Deprecated
|
|
2790
2815
|
"anthropic.claude-3-7-sonnet": withDefaultModel(
|
|
2791
2816
|
anthropicChatV1,
|
|
2792
2817
|
"claude-3-7-sonnet-20250219"
|
|
2793
2818
|
),
|
|
2794
|
-
// Claude 3.5 models
|
|
2795
2819
|
"anthropic.claude-3-5-sonnet": withDefaultModel(
|
|
2796
2820
|
anthropicChatV1,
|
|
2797
2821
|
"claude-3-5-sonnet-latest"
|
|
@@ -2800,7 +2824,6 @@ var anthropic = {
|
|
|
2800
2824
|
anthropicChatV1,
|
|
2801
2825
|
"claude-3-5-haiku-latest"
|
|
2802
2826
|
),
|
|
2803
|
-
// Deprecated
|
|
2804
2827
|
"anthropic.claude-3-opus": withDefaultModel(
|
|
2805
2828
|
anthropicChatV1,
|
|
2806
2829
|
"claude-3-opus-20240229"
|
package/dist/index.mjs
CHANGED
|
@@ -220,6 +220,10 @@ var BaseExecutor = class {
|
|
|
220
220
|
try {
|
|
221
221
|
hookFn(_metadata, this.getMetadata());
|
|
222
222
|
} catch (error) {
|
|
223
|
+
console.warn(
|
|
224
|
+
`[llm-exe] Error in "${String(hook)}" hook:`,
|
|
225
|
+
error
|
|
226
|
+
);
|
|
223
227
|
}
|
|
224
228
|
}
|
|
225
229
|
}
|
|
@@ -2247,7 +2251,12 @@ function createOpenAiCompatibleConfiguration(overrides) {
|
|
|
2247
2251
|
options: {
|
|
2248
2252
|
prompt: {},
|
|
2249
2253
|
effort: {},
|
|
2254
|
+
temperature: {},
|
|
2250
2255
|
topP: {},
|
|
2256
|
+
maxTokens: {},
|
|
2257
|
+
stopSequences: {},
|
|
2258
|
+
frequencyPenalty: {},
|
|
2259
|
+
logitBias: {},
|
|
2251
2260
|
useJson: {},
|
|
2252
2261
|
[apiKeyPropertyKey]: {
|
|
2253
2262
|
default: getEnvironmentVariable(apiKeyPropertyValue)
|
|
@@ -2263,9 +2272,24 @@ function createOpenAiCompatibleConfiguration(overrides) {
|
|
|
2263
2272
|
model: {
|
|
2264
2273
|
key: "model"
|
|
2265
2274
|
},
|
|
2275
|
+
temperature: {
|
|
2276
|
+
key: "temperature"
|
|
2277
|
+
},
|
|
2266
2278
|
topP: {
|
|
2267
2279
|
key: "top_p"
|
|
2268
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
|
+
},
|
|
2269
2293
|
useJson: {
|
|
2270
2294
|
key: "response_format.type",
|
|
2271
2295
|
transform: (v) => v ? "json_object" : "text"
|
|
@@ -2724,11 +2748,11 @@ var anthropic = {
|
|
|
2724
2748
|
anthropicChatV1,
|
|
2725
2749
|
"claude-opus-4-0"
|
|
2726
2750
|
),
|
|
2751
|
+
// Deprecated
|
|
2727
2752
|
"anthropic.claude-3-7-sonnet": withDefaultModel(
|
|
2728
2753
|
anthropicChatV1,
|
|
2729
2754
|
"claude-3-7-sonnet-20250219"
|
|
2730
2755
|
),
|
|
2731
|
-
// Claude 3.5 models
|
|
2732
2756
|
"anthropic.claude-3-5-sonnet": withDefaultModel(
|
|
2733
2757
|
anthropicChatV1,
|
|
2734
2758
|
"claude-3-5-sonnet-latest"
|
|
@@ -2737,7 +2761,6 @@ var anthropic = {
|
|
|
2737
2761
|
anthropicChatV1,
|
|
2738
2762
|
"claude-3-5-haiku-latest"
|
|
2739
2763
|
),
|
|
2740
|
-
// Deprecated
|
|
2741
2764
|
"anthropic.claude-3-opus": withDefaultModel(
|
|
2742
2765
|
anthropicChatV1,
|
|
2743
2766
|
"claude-3-opus-20240229"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "llm-exe",
|
|
3
|
-
"version": "2.3.
|
|
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",
|