@promptbook/core 0.86.6 → 0.86.8
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 +4 -3
- package/esm/index.es.js.map +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +4 -3
- package/umd/index.umd.js.map +1 -1
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* @generated
|
|
28
28
|
* @see https://github.com/webgptorg/promptbook
|
|
29
29
|
*/
|
|
30
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.86.
|
|
30
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.86.8';
|
|
31
31
|
/**
|
|
32
32
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
33
33
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -10816,13 +10816,14 @@
|
|
|
10816
10816
|
return /* not await */ llmTools.listModels();
|
|
10817
10817
|
} });
|
|
10818
10818
|
var callCommonModel = function (prompt) { return __awaiter(_this, void 0, void 0, function () {
|
|
10819
|
-
var key, cacheItem, _a, promptResult, _b;
|
|
10819
|
+
var parameters, content, modelRequirements, key, cacheItem, _a, promptResult, _b;
|
|
10820
10820
|
return __generator(this, function (_c) {
|
|
10821
10821
|
switch (_c.label) {
|
|
10822
10822
|
case 0:
|
|
10823
|
+
parameters = prompt.parameters, content = prompt.content, modelRequirements = prompt.modelRequirements;
|
|
10823
10824
|
key = titleToName(prompt.title.substring(0, MAX_FILENAME_LENGTH - 10) +
|
|
10824
10825
|
'-' +
|
|
10825
|
-
sha256__default["default"](hexEncoder__default["default"].parse(JSON.stringify(
|
|
10826
|
+
sha256__default["default"](hexEncoder__default["default"].parse(JSON.stringify({ parameters: parameters, content: content, modelRequirements: modelRequirements }))).toString( /* hex */));
|
|
10826
10827
|
if (!!isCacheReloaded) return [3 /*break*/, 2];
|
|
10827
10828
|
return [4 /*yield*/, storage.getItem(key)];
|
|
10828
10829
|
case 1:
|