@ai-sdk/gateway 3.0.192 → 3.0.193

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.mjs CHANGED
@@ -911,6 +911,7 @@ var GatewayLanguageModel = class {
911
911
  };
912
912
  }
913
913
  async doGenerate(options) {
914
+ var _a11;
914
915
  const { args, warnings } = await this.getArgs(options);
915
916
  const { abortSignal } = options;
916
917
  const resolvedHeaders = await resolve4(this.config.headers());
@@ -932,8 +933,8 @@ var GatewayLanguageModel = class {
932
933
  failedResponseHandler: createJsonErrorResponseHandler4({
933
934
  errorSchema: z8.any(),
934
935
  errorToMessage: (data) => {
935
- var _a11;
936
- return (_a11 = getErrorMessage4(data)) != null ? _a11 : "unknown error";
936
+ var _a12;
937
+ return (_a12 = getErrorMessage4(data)) != null ? _a12 : "unknown error";
937
938
  }
938
939
  }),
939
940
  ...abortSignal && { abortSignal },
@@ -943,7 +944,7 @@ var GatewayLanguageModel = class {
943
944
  ...responseBody,
944
945
  request: { body: args },
945
946
  response: { headers: responseHeaders, body: rawResponse },
946
- warnings
947
+ warnings: [...(_a11 = responseBody.warnings) != null ? _a11 : [], ...warnings]
947
948
  };
948
949
  } catch (error) {
949
950
  throw await asGatewayError(error, await parseAuthMethod(resolvedHeaders));
@@ -2482,7 +2483,7 @@ async function getVercelRequestId() {
2482
2483
  }
2483
2484
 
2484
2485
  // src/version.ts
2485
- var VERSION = true ? "3.0.192" : "0.0.0-test";
2486
+ var VERSION = true ? "3.0.193" : "0.0.0-test";
2486
2487
 
2487
2488
  // src/gateway-provider.ts
2488
2489
  var AI_GATEWAY_PROTOCOL_VERSION = "0.0.1";