wait_rate_limit: Wait for ratelimit restore times to ellapse if necessary

View source: R/rate_limits.R

wait_rate_limitR Documentation

Wait for ratelimit restore times to ellapse if necessary

Description

This function implements a standardized wait for rate limit resets

Usage

wait_rate_limit(.api_name, .min_tokens_reset)

Arguments

.api_name

The name of the API for which rate limit we want to wait

.min_tokens_reset

A token boundary at which we wish to reset (Typically should be larger than the size of the message)


tidyllm documentation built on Oct. 10, 2024, 5:07 p.m.