We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
X-Stainless-Timeout
1 parent efce6d3 commit 5e5e460Copy full SHA for 5e5e460
src/core.ts
@@ -406,7 +406,7 @@ export abstract class APIClient {
406
getHeader(headers, 'x-stainless-timeout') === undefined &&
407
options.timeout
408
) {
409
- reqHeaders['x-stainless-timeout'] = String(options.timeout);
+ reqHeaders['x-stainless-timeout'] = String(Math.trunc(options.timeout / 1000));
410
}
411
412
this.validateHeaders(reqHeaders, headers);
0 commit comments