Type alias RateLimitConfig

RateLimitConfig: {
    duration: number;
    maxTotalRetryTime?: number;
    points: number;
}

Type declaration

  • duration: number

    Time window in seconds

  • Optional maxTotalRetryTime?: number

    Maximum time to wait for a token in milliseconds (defaults to 120000ms)

  • points: number

    Number of requests allowed in the time window