@promptbook/remote-server 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
|
@@ -33,7 +33,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
33
33
|
* @generated
|
|
34
34
|
* @see https://github.com/webgptorg/promptbook
|
|
35
35
|
*/
|
|
36
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-
|
|
36
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-8';
|
|
37
37
|
/**
|
|
38
38
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
39
39
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -2973,18 +2973,26 @@ async function preparePersona(personaDescription, tools, options) {
|
|
|
2973
2973
|
}).asPromise();
|
|
2974
2974
|
const { outputParameters } = result;
|
|
2975
2975
|
const { modelsRequirements: modelsRequirementsJson } = outputParameters;
|
|
2976
|
-
|
|
2976
|
+
let modelsRequirementsUnchecked = jsonParse(modelsRequirementsJson);
|
|
2977
2977
|
if (isVerbose) {
|
|
2978
2978
|
console.info(`PERSONA ${personaDescription}`, modelsRequirementsUnchecked);
|
|
2979
2979
|
}
|
|
2980
2980
|
if (!Array.isArray(modelsRequirementsUnchecked)) {
|
|
2981
|
-
|
|
2981
|
+
// <- TODO: Book should have syntax and system to enforce shape of JSON
|
|
2982
|
+
modelsRequirementsUnchecked = [modelsRequirementsUnchecked];
|
|
2983
|
+
/*
|
|
2984
|
+
throw new UnexpectedError(
|
|
2985
|
+
spaceTrim(
|
|
2986
|
+
(block) => `
|
|
2982
2987
|
Invalid \`modelsRequirements\`:
|
|
2983
2988
|
|
|
2984
2989
|
\`\`\`json
|
|
2985
2990
|
${block(JSON.stringify(modelsRequirementsUnchecked, null, 4))}
|
|
2986
2991
|
\`\`\`
|
|
2987
|
-
|
|
2992
|
+
`,
|
|
2993
|
+
),
|
|
2994
|
+
);
|
|
2995
|
+
*/
|
|
2988
2996
|
}
|
|
2989
2997
|
const modelsRequirements = modelsRequirementsUnchecked.map((modelRequirements) => ({
|
|
2990
2998
|
modelVariant: 'CHAT',
|