Learn R Programming

tidyllm (version 0.2.0)

update_rate_limit: Update the standard API rate limit info in the hidden .tidyllm_rate_limit_env environment

Description

This function initializes stores ratelimit information from API functions for future use

Usage

update_rate_limit(.api_name, .response_object)

Arguments

.api_name

The name of the API for which to initialize or retrieve the environment.

.response_object

A preparsed response object cotaining info on remaining requests, tokens and rest times