@promptbook/pdf 0.92.0-6 → 0.92.0-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 +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 +2 -2
- package/umd/index.umd.js +16 -8
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -26,7 +26,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
26
26
|
* @generated
|
|
27
27
|
* @see https://github.com/webgptorg/promptbook
|
|
28
28
|
*/
|
|
29
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-
|
|
29
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-8';
|
|
30
30
|
/**
|
|
31
31
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
32
32
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -3041,18 +3041,26 @@ async function preparePersona(personaDescription, tools, options) {
|
|
|
3041
3041
|
}).asPromise();
|
|
3042
3042
|
const { outputParameters } = result;
|
|
3043
3043
|
const { modelsRequirements: modelsRequirementsJson } = outputParameters;
|
|
3044
|
-
|
|
3044
|
+
let modelsRequirementsUnchecked = jsonParse(modelsRequirementsJson);
|
|
3045
3045
|
if (isVerbose) {
|
|
3046
3046
|
console.info(`PERSONA ${personaDescription}`, modelsRequirementsUnchecked);
|
|
3047
3047
|
}
|
|
3048
3048
|
if (!Array.isArray(modelsRequirementsUnchecked)) {
|
|
3049
|
-
|
|
3049
|
+
// <- TODO: Book should have syntax and system to enforce shape of JSON
|
|
3050
|
+
modelsRequirementsUnchecked = [modelsRequirementsUnchecked];
|
|
3051
|
+
/*
|
|
3052
|
+
throw new UnexpectedError(
|
|
3053
|
+
spaceTrim(
|
|
3054
|
+
(block) => `
|
|
3050
3055
|
Invalid \`modelsRequirements\`:
|
|
3051
3056
|
|
|
3052
3057
|
\`\`\`json
|
|
3053
3058
|
${block(JSON.stringify(modelsRequirementsUnchecked, null, 4))}
|
|
3054
3059
|
\`\`\`
|
|
3055
|
-
|
|
3060
|
+
`,
|
|
3061
|
+
),
|
|
3062
|
+
);
|
|
3063
|
+
*/
|
|
3056
3064
|
}
|
|
3057
3065
|
const modelsRequirements = modelsRequirementsUnchecked.map((modelRequirements) => ({
|
|
3058
3066
|
modelVariant: 'CHAT',
|