@promptbook/cli 0.72.0-13 → 0.72.0-14
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/esm/index.es.js
CHANGED
|
@@ -26,7 +26,7 @@ import { Converter } from 'showdown';
|
|
|
26
26
|
/**
|
|
27
27
|
* The version of the Promptbook library
|
|
28
28
|
*/
|
|
29
|
-
var PROMPTBOOK_VERSION = '0.72.0-
|
|
29
|
+
var PROMPTBOOK_VERSION = '0.72.0-13';
|
|
30
30
|
// TODO: [main] !!!! List here all the versions and annotate + put into script
|
|
31
31
|
|
|
32
32
|
/*! *****************************************************************************
|
|
@@ -8630,7 +8630,7 @@ function $registeredLlmToolsMessage() {
|
|
|
8630
8630
|
*/
|
|
8631
8631
|
function createLlmToolsFromConfiguration(configuration, options) {
|
|
8632
8632
|
if (options === void 0) { options = {}; }
|
|
8633
|
-
var _a = options.isVerbose, isVerbose = _a === void 0 ? IS_VERBOSE : _a;
|
|
8633
|
+
var _a = options.isVerbose, isVerbose = _a === void 0 ? IS_VERBOSE : _a, userId = options.userId;
|
|
8634
8634
|
var llmTools = configuration.map(function (llmConfiguration) {
|
|
8635
8635
|
var registeredItem = $llmToolsRegister
|
|
8636
8636
|
.list()
|
|
@@ -8641,7 +8641,7 @@ function createLlmToolsFromConfiguration(configuration, options) {
|
|
|
8641
8641
|
if (registeredItem === undefined) {
|
|
8642
8642
|
throw new Error(spaceTrim$1(function (block) { return "\n There is no constructor for LLM provider `".concat(llmConfiguration.className, "` from `").concat(llmConfiguration.packageName, "`\n\n You have probably forgotten install and import the provider package.\n To fix this issue, you can:\n\n Install:\n\n > npm install ").concat(llmConfiguration.packageName, "\n\n And import:\n\n > import '").concat(llmConfiguration.packageName, "';\n\n\n ").concat(block($registeredLlmToolsMessage()), "\n "); }));
|
|
8643
8643
|
}
|
|
8644
|
-
return registeredItem(__assign({ isVerbose: isVerbose }, llmConfiguration.options));
|
|
8644
|
+
return registeredItem(__assign({ isVerbose: isVerbose, userId: userId }, llmConfiguration.options));
|
|
8645
8645
|
});
|
|
8646
8646
|
return joinLlmExecutionTools.apply(void 0, __spreadArray([], __read(llmTools), false));
|
|
8647
8647
|
}
|