Skip to content

Commit 5e5e460

Browse files
fix(client): send X-Stainless-Timeout in seconds (#1442)
1 parent efce6d3 commit 5e5e460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ export abstract class APIClient {
406406
getHeader(headers, 'x-stainless-timeout') === undefined &&
407407
options.timeout
408408
) {
409-
reqHeaders['x-stainless-timeout'] = String(options.timeout);
409+
reqHeaders['x-stainless-timeout'] = String(Math.trunc(options.timeout / 1000));
410410
}
411411

412412
this.validateHeaders(reqHeaders, headers);

0 commit comments

Comments
 (0)