Skip to contents

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, ...)

Arguments

skeleton

A gptstudio_response_skeleton object

...

Extra arguments, not currently used

Value

A gptstudio_request_skeleton with updated history and prompt removed

Examples

if (FALSE) { # \dontrun{
gptstudio_response_process(gptstudio_skeleton)
} # }