parse_response: Parse OpenAI API Response

View source: R/parse_response.R

parse_responseR 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.


chatgpt documentation built on May 31, 2023, 6:54 p.m.