@@ -175,7 +175,7 @@ export class Kernel {
175175 * @param {string | undefined } [opts.apiKey=process.env['KERNEL_API_KEY'] ?? undefined]
176176 * @param {Environment } [opts.environment=production] - Specifies the environment URL to use for the API.
177177 * @param {string } [opts.baseURL=process.env['KERNEL_BASE_URL'] ?? https://api.onkernel.com/] - Override the default base URL for the API.
178- * @param {number } [opts.timeout=5 seconds ] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
178+ * @param {number } [opts.timeout=1 minute ] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
179179 * @param {MergedRequestInit } [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
180180 * @param {Fetch } [opts.fetch] - Specify a custom `fetch` function implementation.
181181 * @param {number } [opts.maxRetries=2] - The maximum number of times the client will retry a request.
@@ -207,7 +207,7 @@ export class Kernel {
207207 }
208208
209209 this . baseURL = options . baseURL || environments [ options . environment || 'production' ] ;
210- this . timeout = options . timeout ?? Kernel . DEFAULT_TIMEOUT /* 5 seconds */ ;
210+ this . timeout = options . timeout ?? Kernel . DEFAULT_TIMEOUT /* 1 minute */ ;
211211 this . logger = options . logger ?? console ;
212212 const defaultLogLevel = 'warn' ;
213213 // Set default logLevel early so that we can log a warning in parseLogLevel.
@@ -761,7 +761,7 @@ export class Kernel {
761761 }
762762
763763 static Kernel = this ;
764- static DEFAULT_TIMEOUT = 5000 ; // 5 seconds
764+ static DEFAULT_TIMEOUT = 60000 ; // 1 minute
765765
766766 static KernelError = Errors . KernelError ;
767767 static APIError = Errors . APIError ;
0 commit comments