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 4c2865b commit cb150edCopy full SHA for cb150ed
src/client.ts
@@ -628,7 +628,7 @@ export class Stainless {
628
Accept: 'application/json',
629
'User-Agent': this.getUserAgent(),
630
'X-Stainless-Retry-Count': String(retryCount),
631
- ...(options.timeout ? { 'X-Stainless-Timeout': String(options.timeout) } : {}),
+ ...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
632
...getPlatformHeaders(),
633
},
634
this.authHeaders(options),
0 commit comments