@promptbook/website-crawler 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
|
@@ -29,7 +29,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
29
29
|
* @generated
|
|
30
30
|
* @see https://github.com/webgptorg/promptbook
|
|
31
31
|
*/
|
|
32
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-
|
|
32
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-8';
|
|
33
33
|
/**
|
|
34
34
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
35
35
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -3156,18 +3156,26 @@ async function preparePersona(personaDescription, tools, options) {
|
|
|
3156
3156
|
}).asPromise();
|
|
3157
3157
|
const { outputParameters } = result;
|
|
3158
3158
|
const { modelsRequirements: modelsRequirementsJson } = outputParameters;
|
|
3159
|
-
|
|
3159
|
+
let modelsRequirementsUnchecked = jsonParse(modelsRequirementsJson);
|
|
3160
3160
|
if (isVerbose) {
|
|
3161
3161
|
console.info(`PERSONA ${personaDescription}`, modelsRequirementsUnchecked);
|
|
3162
3162
|
}
|
|
3163
3163
|
if (!Array.isArray(modelsRequirementsUnchecked)) {
|
|
3164
|
-
|
|
3164
|
+
// <- TODO: Book should have syntax and system to enforce shape of JSON
|
|
3165
|
+
modelsRequirementsUnchecked = [modelsRequirementsUnchecked];
|
|
3166
|
+
/*
|
|
3167
|
+
throw new UnexpectedError(
|
|
3168
|
+
spaceTrim(
|
|
3169
|
+
(block) => `
|
|
3165
3170
|
Invalid \`modelsRequirements\`:
|
|
3166
3171
|
|
|
3167
3172
|
\`\`\`json
|
|
3168
3173
|
${block(JSON.stringify(modelsRequirementsUnchecked, null, 4))}
|
|
3169
3174
|
\`\`\`
|
|
3170
|
-
|
|
3175
|
+
`,
|
|
3176
|
+
),
|
|
3177
|
+
);
|
|
3178
|
+
*/
|
|
3171
3179
|
}
|
|
3172
3180
|
const modelsRequirements = modelsRequirementsUnchecked.map((modelRequirements) => ({
|
|
3173
3181
|
modelVariant: 'CHAT',
|