@promptbook/components 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
@@ -35,7 +35,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
35
35
  * @generated
36
36
  * @see https://github.com/webgptorg/promptbook
37
37
  */
38
- const PROMPTBOOK_ENGINE_VERSION = '0.104.0-6';
38
+ const PROMPTBOOK_ENGINE_VERSION = '0.104.0-7';
39
39
  /**
40
40
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
41
41
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -157,6 +157,8 @@ function normalizeTo_camelCase(text, _isFirstLetterCapital = false) {
157
157
  * Core Promptbook server configuration.
158
158
  *
159
159
  * This server is also used for auto-federation in the Agents Server.
160
+ *
161
+ * @public exported from `@promptbook/core`
160
162
  */
161
163
  const CORE_SERVER = {
162
164
  title: 'Promptbook Core',
@@ -16707,13 +16709,14 @@ class OpenAiCompatibleExecutionTools {
16707
16709
  const modelName = currentModelRequirements.modelName || this.getDefaultImageGenerationModel().modelName;
16708
16710
  const modelSettings = {
16709
16711
  model: modelName,
16710
- // size: currentModelRequirements.size,
16711
- // quality: currentModelRequirements.quality,
16712
- // style: currentModelRequirements.style,
16712
+ size: currentModelRequirements.size,
16713
+ quality: currentModelRequirements.quality,
16714
+ style: currentModelRequirements.style,
16713
16715
  };
16714
16716
  const rawPromptContent = templateParameters(content, { ...parameters, modelName });
16715
16717
  const rawRequest = {
16716
16718
  ...modelSettings,
16719
+ size: modelSettings.size || '1024x1024',
16717
16720
  prompt: rawPromptContent,
16718
16721
  user: (_a = this.options.userId) === null || _a === void 0 ? void 0 : _a.toString(),
16719
16722
  response_format: 'url', // TODO: [🧠] Maybe allow b64_json