parse_response: Parse OpenAI API Response
Description
Takes the raw response from the OpenAI API and extracts the text content from it.
Usage
parse_response(raw_responses)
Value
Returns a character vector containing the text content of the response.
Arguments
- raw_responses
The raw response object returned by the OpenAI API.