@cadraos/sdk 0.3.14 → 0.3.15

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.
@@ -3898,6 +3898,10 @@ var HttpClient = class {
3898
3898
  constructor(config) {
3899
3899
  this.config = config;
3900
3900
  }
3901
+ /** The client-wide request timeout (ms) this client was configured with. */
3902
+ get timeoutMs() {
3903
+ return this.config.timeout;
3904
+ }
3901
3905
  /**
3902
3906
  * Get authorization header value
3903
3907
  */
@@ -7014,7 +7018,7 @@ var RemoteRunnersAPI = class extends BaseResourceAPI {
7014
7018
  };
7015
7019
 
7016
7020
  // src/resources/ai-functions.ts
7017
- var AI_FUNCTION_RUN_TIMEOUT_MS = 6e4;
7021
+ var AI_FUNCTION_RUN_TIMEOUT_MS = 31e4;
7018
7022
  var AI_FUNCTION_DESCRIPTOR_TTL_MS = 6e4;
7019
7023
  function checkAiFunctionParameters(parameters, variables) {
7020
7024
  const issues = [];
@@ -7127,7 +7131,7 @@ var AiFunctionsAPI = class extends BaseResourceAPI {
7127
7131
  try {
7128
7132
  return await this.httpPost("/run", body, {
7129
7133
  skipRetry: true,
7130
- timeoutMs: AI_FUNCTION_RUN_TIMEOUT_MS
7134
+ timeoutMs: Math.max(AI_FUNCTION_RUN_TIMEOUT_MS, this.http.timeoutMs ?? 0)
7131
7135
  });
7132
7136
  } catch (error) {
7133
7137
  throw this.mapRunError(error, functionKey);