@llmgateway/ai-sdk-provider 2.3.1 → 2.5.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.
@@ -2802,6 +2818,11 @@ type LLMGatewaySharedSettings = LLMGatewayProviderOptions & {
2802
2818
  * @deprecated use `reasoning` instead
2803
2819
  */
2804
2820
  includeReasoning?: boolean;
2821
+ /**
2822
+ * Reasoning effort level for models that support it.
2823
+ * Controls the computational effort applied to reasoning tasks.
2824
+ */
2825
+ reasoning_effort?: 'minimal' | 'low' | 'medium' | 'high';
2805
2826
  extraBody?: Record<string, unknown>;
2806
2827
  /**
2807
2828
  * Enable usage accounting to get detailed token usage information.
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.
@@ -2802,6 +2818,11 @@ type LLMGatewaySharedSettings = LLMGatewayProviderOptions & {
2802
2818
  * @deprecated use `reasoning` instead
2803
2819
  */
2804
2820
  includeReasoning?: boolean;
2821
+ /**
2822
+ * Reasoning effort level for models that support it.
2823
+ * Controls the computational effort applied to reasoning tasks.
2824
+ */
2825
+ reasoning_effort?: 'minimal' | 'low' | 'medium' | 'high';
2805
2826
  extraBody?: Record<string, unknown>;
2806
2827
  /**
2807
2828
  * Enable usage accounting to get detailed token usage information.
package/dist/index.js CHANGED
@@ -1407,7 +1407,9 @@ 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
+ reasoning_effort: this.settings.reasoning_effort,
1411
+ usage: this.settings.usage,
1412
+ image_config: this.settings.image_config
1411
1413
  }, this.config.extraBody), this.settings.extraBody);
1412
1414
  if ((responseFormat == null ? void 0 : responseFormat.type) === "json") {
1413
1415
  if ("schema" in responseFormat && responseFormat.schema) {
@@ -2119,7 +2121,9 @@ var LLMGatewayCompletionLanguageModel = class {
2119
2121
  prompt: completionPrompt,
2120
2122
  // LLMGateway specific settings:
2121
2123
  include_reasoning: this.settings.includeReasoning,
2122
- reasoning: this.settings.reasoning
2124
+ reasoning: this.settings.reasoning,
2125
+ reasoning_effort: this.settings.reasoning_effort,
2126
+ image_config: this.settings.image_config
2123
2127
  }, this.config.extraBody), this.settings.extraBody);
2124
2128
  }
2125
2129
  async doGenerate(options) {