rate_limits_per_minute {AIscreenR} | R Documentation |
Find updated rate limits for API models
Description
rate_limits_per_minute
reports the rate limits for a given API model.
The function returns the available requests per minute (RPM) as well as tokens per minute (TPM).
Find general information at
https://platform.openai.com/docs/guides/rate-limits/overview.
Usage
rate_limits_per_minute(
model = "gpt-4o-mini",
AI_tool = "gpt",
api_key = get_api_key()
)
Arguments
model |
Character string with the name of the completion model.
Default is |
AI_tool |
Character string specifying the AI tool from which the API is
issued. Default is |
api_key |
Numerical value with your personal API key. Default setting draws
on the |
Value
A tibble
including variables with information about the model used,
the number of requests and tokens per minute.
Examples
## Not run:
set_api_key()
rate_limits_per_minute()
## End(Not run)