@promptbook/markdown-utils 0.92.0-6 → 0.92.0-7
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 +12 -4
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/remote-server/openapi-types.d.ts +348 -6
- package/package.json +1 -1
- package/umd/index.umd.js +16 -8
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -25,7 +25,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
25
25
|
* @generated
|
|
26
26
|
* @see https://github.com/webgptorg/promptbook
|
|
27
27
|
*/
|
|
28
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-
|
|
28
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-7';
|
|
29
29
|
/**
|
|
30
30
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
31
31
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -2727,18 +2727,26 @@ async function preparePersona(personaDescription, tools, options) {
|
|
|
2727
2727
|
}).asPromise();
|
|
2728
2728
|
const { outputParameters } = result;
|
|
2729
2729
|
const { modelsRequirements: modelsRequirementsJson } = outputParameters;
|
|
2730
|
-
|
|
2730
|
+
let modelsRequirementsUnchecked = jsonParse(modelsRequirementsJson);
|
|
2731
2731
|
if (isVerbose) {
|
|
2732
2732
|
console.info(`PERSONA ${personaDescription}`, modelsRequirementsUnchecked);
|
|
2733
2733
|
}
|
|
2734
2734
|
if (!Array.isArray(modelsRequirementsUnchecked)) {
|
|
2735
|
-
|
|
2735
|
+
// <- TODO: Book should have syntax and system to enforce shape of JSON
|
|
2736
|
+
modelsRequirementsUnchecked = [modelsRequirementsUnchecked];
|
|
2737
|
+
/*
|
|
2738
|
+
throw new UnexpectedError(
|
|
2739
|
+
spaceTrim(
|
|
2740
|
+
(block) => `
|
|
2736
2741
|
Invalid \`modelsRequirements\`:
|
|
2737
2742
|
|
|
2738
2743
|
\`\`\`json
|
|
2739
2744
|
${block(JSON.stringify(modelsRequirementsUnchecked, null, 4))}
|
|
2740
2745
|
\`\`\`
|
|
2741
|
-
|
|
2746
|
+
`,
|
|
2747
|
+
),
|
|
2748
|
+
);
|
|
2749
|
+
*/
|
|
2742
2750
|
}
|
|
2743
2751
|
const modelsRequirements = modelsRequirementsUnchecked.map((modelRequirements) => ({
|
|
2744
2752
|
modelVariant: 'CHAT',
|