parse_response {chatgpt} | R Documentation |
Takes the raw response from the OpenAI API and extracts the text content from it.
parse_response(raw_responses)
raw_responses |
The raw response object returned by the OpenAI API. |
Returns a character vector containing the text content of the response.