@llmgateway/ai-sdk-provider 3.6.0 → 3.7.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.
@@ -3591,13 +3591,19 @@ var LLMGatewayImageModel = class {
3591
3591
  if (options.aspectRatio != null) {
3592
3592
  body.aspect_ratio = options.aspectRatio;
3593
3593
  }
3594
+ if (options.quality != null) {
3595
+ body.quality = options.quality;
3596
+ }
3597
+ const providerOptions = options.providerOptions || {};
3598
+ const llmgatewayOptions = providerOptions.llmgateway || {};
3599
+ const requestBody = __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, body), this.config.extraBody), this.settings.extraBody), llmgatewayOptions);
3594
3600
  const { value: response, responseHeaders } = await postJsonToApi({
3595
3601
  url: this.config.url({
3596
3602
  path: hasFiles ? "/images/edits" : "/images/generations",
3597
3603
  modelId: this.modelId
3598
3604
  }),
3599
3605
  headers: combineHeaders(this.config.headers(), options.headers),
3600
- body,
3606
+ body: requestBody,
3601
3607
  failedResponseHandler: llmgatewayFailedResponseHandler,
3602
3608
  successfulResponseHandler: createJsonResponseHandler(
3603
3609
  LLMGatewayImageResponseSchema