Learn R Programming

TheOpenAIR (version 0.1.0)

id: Extract ID from OpenAI API response

Description

This function extracts the ID from the parsed HTTP response of an API call to the OpenAI chat completions endpoint.

Usage

id(response)

Value

a character string representing the ID from the response

Arguments

response

a list object representing the HTTP response

Author

Ulrich Matter umatter@protonmail.com