@llmgateway/ai-sdk-provider 3.3.0 → 3.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.js CHANGED
@@ -3640,12 +3640,6 @@ var LLMGatewayImageModel = class {
3640
3640
  }
3641
3641
  async doGenerate(options) {
3642
3642
  const warnings = [];
3643
- if (options.aspectRatio != null) {
3644
- warnings.push({
3645
- type: "unsupported",
3646
- feature: "aspectRatio"
3647
- });
3648
- }
3649
3643
  if (options.seed != null) {
3650
3644
  warnings.push({
3651
3645
  type: "unsupported",
@@ -3661,6 +3655,9 @@ var LLMGatewayImageModel = class {
3661
3655
  if (options.size != null) {
3662
3656
  body.size = options.size;
3663
3657
  }
3658
+ if (options.aspectRatio != null) {
3659
+ body.aspect_ratio = options.aspectRatio;
3660
+ }
3664
3661
  const { value: response, responseHeaders } = await postJsonToApi({
3665
3662
  url: this.config.url({
3666
3663
  path: "/images/generations",