parse_response {chatgpt}R Documentation

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)

Arguments

raw_responses

The raw response object returned by the OpenAI API.

Value

Returns a character vector containing the text content of the response.


[Package chatgpt version 0.2.3 Index]