Learn R Programming

gptstudio (version 0.4.0)

gptstudio_response_process: Call API

Description

This function provides a generic interface for calling different APIs (e.g., OpenAI, HuggingFace, Google AI Studio). It dispatches the actual API calls to the relevant method based on the class of the skeleton argument.

Usage

gptstudio_response_process(skeleton, ...)

Value

A gptstudio_request_skeleton with updated history and prompt removed

Arguments

skeleton

A gptstudio_response_skeleton object

...

Extra arguments, not currently used

Examples

Run this code
if (FALSE) {
gptstudio_response_process(gptstudio_skeleton)
}

Run the code above in your browser using DataLab