object {TheOpenAIR}R Documentation

Extract object information from OpenAI API response

Description

This function extracts the object data from the parsed HTTP response of an API call to the OpenAI chat completions endpoint (provides information about the endpoint).

Usage

object(response)

Arguments

response

a list object representing the HTTP response

Value

a data frame with the usage statistics of the API call (how many tokens used)

Author(s)

Ulrich Matter umatter@protonmail.com


[Package TheOpenAIR version 0.1.0 Index]