We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
X-Stainless-Timeout
1 parent a08469c commit 7b4a5abCopy full SHA for 7b4a5ab
1 file changed
src/client.ts
@@ -636,7 +636,7 @@ export class Grid {
636
Accept: 'application/json',
637
'User-Agent': this.getUserAgent(),
638
'X-Stainless-Retry-Count': String(retryCount),
639
- ...(options.timeout ? { 'X-Stainless-Timeout': String(options.timeout) } : {}),
+ ...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
640
...getPlatformHeaders(),
641
'X-Client-Name': 'api-sdk',
642
},
0 commit comments