Learn R Programming

TheOpenAIR (version 0.1.0)

messages_content: Extract Messages Content from OpenAI API Response

Description

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

Usage

messages_content(response)

Value

a character string representing the choices/messages from the response

Arguments

response

a list object representing the HTTP response

Author

Ulrich Matter umatter@protonmail.com