@promptbook/core 0.86.6 β 0.86.10
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/README.md +3 -4
- package/esm/index.es.js +4 -3
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/conversion/archive/loadArchive.d.ts +16 -0
- package/esm/typings/src/conversion/archive/saveArchive.d.ts +18 -0
- package/esm/typings/src/conversion/validation/_importPipeline.d.ts +3 -10
- package/package.json +1 -1
- package/umd/index.umd.js +4 -3
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/utils/editable/utils/stringifyPipelineJson.test.d.ts +0 -1
package/README.md
CHANGED
|
@@ -410,7 +410,7 @@ See [CHANGELOG.md](./CHANGELOG.md)
|
|
|
410
410
|
|
|
411
411
|
## π License
|
|
412
412
|
|
|
413
|
-
|
|
413
|
+
Promptbook project is under [BUSL 1.1 is an SPDX license](https://spdx.org/licenses/BUSL-1.1.html)
|
|
414
414
|
|
|
415
415
|
## π― Todos
|
|
416
416
|
|
|
@@ -418,7 +418,6 @@ See [TODO.md](./TODO.md)
|
|
|
418
418
|
|
|
419
419
|
|
|
420
420
|
|
|
421
|
-
|
|
422
421
|
## π€ Partners
|
|
423
422
|
|
|
424
423
|
<div style="display: flex; align-items: center; gap: 20px;">
|
|
@@ -435,6 +434,6 @@ See [TODO.md](./TODO.md)
|
|
|
435
434
|
|
|
436
435
|
## ποΈ Contributing
|
|
437
436
|
|
|
438
|
-
|
|
437
|
+
We are open to pull requests, feedback, and suggestions.
|
|
439
438
|
|
|
440
|
-
You can also β star the
|
|
439
|
+
You can also β star the project, [follow us on GitHub](https://github.com/hejny) or [various other social networks](https://www.pavolhejny.com/contact/).
|
package/esm/index.es.js
CHANGED
|
@@ -27,7 +27,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
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.10';
|
|
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 @@ function cacheLlmTools(llmTools, options) {
|
|
|
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(hexEncoder.parse(JSON.stringify(
|
|
10826
|
+
sha256(hexEncoder.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:
|