usage | R Documentation |
This function extracts the usage data from the parsed HTTP response of an API call to the OpenAI chat completions endpoint.
usage(response)
response |
a list object representing the HTTP response |
a data frame with the usage statistics of the API call (how many tokens used)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.