@promptbook/wizard 0.104.0-6 → 0.104.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 CHANGED
@@ -36,7 +36,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
36
36
  * @generated
37
37
  * @see https://github.com/webgptorg/promptbook
38
38
  */
39
- const PROMPTBOOK_ENGINE_VERSION = '0.104.0-6';
39
+ const PROMPTBOOK_ENGINE_VERSION = '0.104.0-7';
40
40
  /**
41
41
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
42
42
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -46,6 +46,8 @@ const PROMPTBOOK_ENGINE_VERSION = '0.104.0-6';
46
46
  * Core Promptbook server configuration.
47
47
  *
48
48
  * This server is also used for auto-federation in the Agents Server.
49
+ *
50
+ * @public exported from `@promptbook/core`
49
51
  */
50
52
  const CORE_SERVER = {
51
53
  title: 'Promptbook Core',
@@ -6242,13 +6244,14 @@ class OpenAiCompatibleExecutionTools {
6242
6244
  const modelName = currentModelRequirements.modelName || this.getDefaultImageGenerationModel().modelName;
6243
6245
  const modelSettings = {
6244
6246
  model: modelName,
6245
- // size: currentModelRequirements.size,
6246
- // quality: currentModelRequirements.quality,
6247
- // style: currentModelRequirements.style,
6247
+ size: currentModelRequirements.size,
6248
+ quality: currentModelRequirements.quality,
6249
+ style: currentModelRequirements.style,
6248
6250
  };
6249
6251
  const rawPromptContent = templateParameters(content, { ...parameters, modelName });
6250
6252
  const rawRequest = {
6251
6253
  ...modelSettings,
6254
+ size: modelSettings.size || '1024x1024',
6252
6255
  prompt: rawPromptContent,
6253
6256
  user: (_a = this.options.userId) === null || _a === void 0 ? void 0 : _a.toString(),
6254
6257
  response_format: 'url', // TODO: [🧠] Maybe allow b64_json
@@ -21314,11 +21317,7 @@ const modelCommandParser = {
21314
21317
  // TODO: [🚜] DRY
21315
21318
  if ($taskJson.modelRequirements[command.key] !== undefined) {
21316
21319
  if ($taskJson.modelRequirements[command.key] === command.value) {
21317
- console.warn(`Multiple commands \`MODEL ${{
21318
- modelName: 'NAME',
21319
- modelVariant: 'VARIANT',
21320
- maxTokens: '???',
21321
- }[command.key]} ${command.value}\` in the task "${$taskJson.title || $taskJson.name}"`);
21320
+ console.warn(`Multiple commands \`MODEL ${command.key} ${command.value}\` in the task "${$taskJson.title || $taskJson.name}"`);
21322
21321
  // <- TODO: [🏮] Some standard way how to transform errors into warnings and how to handle non-critical fails during the tasks
21323
21322
  }
21324
21323
  else {