We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11dad21 commit 5399979Copy full SHA for 5399979
src/client.ts
@@ -583,9 +583,9 @@ export class Perplexity {
583
}
584
585
586
- // If the API asks us to wait a certain amount of time (and it's a reasonable amount),
587
- // just do what it says, but otherwise calculate a default
588
- if (!(timeoutMillis && 0 <= timeoutMillis && timeoutMillis < 60 * 1000)) {
+ // If the API asks us to wait a certain amount of time, just do what it
+ // says, but otherwise calculate a default
+ if (timeoutMillis === undefined) {
589
const maxRetries = options.maxRetries ?? this.maxRetries;
590
timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
591
0 commit comments