@promptbook/core 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
|
@@ -14,7 +14,7 @@ import moment from 'moment';
|
|
|
14
14
|
/**
|
|
15
15
|
* The version of the Promptbook library
|
|
16
16
|
*/
|
|
17
|
-
var PROMPTBOOK_VERSION = '0.72.0-
|
|
17
|
+
var PROMPTBOOK_VERSION = '0.72.0-13';
|
|
18
18
|
// TODO: [main] !!!! List here all the versions and annotate + put into script
|
|
19
19
|
|
|
20
20
|
/*! *****************************************************************************
|
|
@@ -8962,7 +8962,7 @@ function $registeredLlmToolsMessage() {
|
|
|
8962
8962
|
*/
|
|
8963
8963
|
function createLlmToolsFromConfiguration(configuration, options) {
|
|
8964
8964
|
if (options === void 0) { options = {}; }
|
|
8965
|
-
var _a = options.isVerbose, isVerbose = _a === void 0 ? IS_VERBOSE : _a;
|
|
8965
|
+
var _a = options.isVerbose, isVerbose = _a === void 0 ? IS_VERBOSE : _a, userId = options.userId;
|
|
8966
8966
|
var llmTools = configuration.map(function (llmConfiguration) {
|
|
8967
8967
|
var registeredItem = $llmToolsRegister
|
|
8968
8968
|
.list()
|
|
@@ -8973,7 +8973,7 @@ function createLlmToolsFromConfiguration(configuration, options) {
|
|
|
8973
8973
|
if (registeredItem === undefined) {
|
|
8974
8974
|
throw new Error(spaceTrim(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 "); }));
|
|
8975
8975
|
}
|
|
8976
|
-
return registeredItem(__assign({ isVerbose: isVerbose }, llmConfiguration.options));
|
|
8976
|
+
return registeredItem(__assign({ isVerbose: isVerbose, userId: userId }, llmConfiguration.options));
|
|
8977
8977
|
});
|
|
8978
8978
|
return joinLlmExecutionTools.apply(void 0, __spreadArray([], __read(llmTools), false));
|
|
8979
8979
|
}
|