@llmgateway/ai-sdk-provider 2.3.1 → 2.4.0

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/dist/index.d.mts CHANGED
@@ -2791,6 +2791,22 @@ type LLMGatewayProviderOptions = {
2791
2791
  } | {
2792
2792
  effort: 'high' | 'medium' | 'low';
2793
2793
  });
2794
+ /**
2795
+ * Image generation configuration for supported models (e.g., Google's image generation models).
2796
+ * Specifies aspect ratio and image resolution for generated images.
2797
+ */
2798
+ image_config?: {
2799
+ /**
2800
+ * The aspect ratio of the generated image.
2801
+ * Examples: "1:1", "16:9", "4:3", "5:4"
2802
+ */
2803
+ aspect_ratio?: string;
2804
+ /**
2805
+ * The resolution of the generated image.
2806
+ * Options: "1K" (1024x1024), "2K" (2048x2048), "4K"
2807
+ */
2808
+ image_size?: string;
2809
+ };
2794
2810
  /**
2795
2811
  * A unique identifier representing your end-user, which can
2796
2812
  * help LLMGateway to monitor and detect abuse.
package/dist/index.d.ts CHANGED
@@ -2791,6 +2791,22 @@ type LLMGatewayProviderOptions = {
2791
2791
  } | {
2792
2792
  effort: 'high' | 'medium' | 'low';
2793
2793
  });
2794
+ /**
2795
+ * Image generation configuration for supported models (e.g., Google's image generation models).
2796
+ * Specifies aspect ratio and image resolution for generated images.
2797
+ */
2798
+ image_config?: {
2799
+ /**
2800
+ * The aspect ratio of the generated image.
2801
+ * Examples: "1:1", "16:9", "4:3", "5:4"
2802
+ */
2803
+ aspect_ratio?: string;
2804
+ /**
2805
+ * The resolution of the generated image.
2806
+ * Options: "1K" (1024x1024), "2K" (2048x2048), "4K"
2807
+ */
2808
+ image_size?: string;
2809
+ };
2794
2810
  /**
2795
2811
  * A unique identifier representing your end-user, which can
2796
2812
  * help LLMGateway to monitor and detect abuse.
package/dist/index.js CHANGED
@@ -1407,7 +1407,8 @@ var LLMGatewayChatLanguageModel = class {
1407
1407
  // LLMGateway specific settings:
1408
1408
  include_reasoning: this.settings.includeReasoning,
1409
1409
  reasoning: this.settings.reasoning,
1410
- usage: this.settings.usage
1410
+ usage: this.settings.usage,
1411
+ image_config: this.settings.image_config
1411
1412
  }, this.config.extraBody), this.settings.extraBody);
1412
1413
  if ((responseFormat == null ? void 0 : responseFormat.type) === "json") {
1413
1414
  if ("schema" in responseFormat && responseFormat.schema) {
@@ -2119,7 +2120,8 @@ var LLMGatewayCompletionLanguageModel = class {
2119
2120
  prompt: completionPrompt,
2120
2121
  // LLMGateway specific settings:
2121
2122
  include_reasoning: this.settings.includeReasoning,
2122
- reasoning: this.settings.reasoning
2123
+ reasoning: this.settings.reasoning,
2124
+ image_config: this.settings.image_config
2123
2125
  }, this.config.extraBody), this.settings.extraBody);
2124
2126
  }
2125
2127
  async doGenerate(options) {