diff --git a/src/core.ts b/src/core.ts index a25fb732b..5f76d6114 100644 --- a/src/core.ts +++ b/src/core.ts @@ -385,7 +385,7 @@ export abstract class APIClient { getHeader(headers, 'x-stainless-timeout') === undefined && options.timeout ) { - reqHeaders['x-stainless-timeout'] = String(options.timeout); + reqHeaders['x-stainless-timeout'] = String(Math.trunc(options.timeout / 1000)); } this.validateHeaders(reqHeaders, headers);