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_request_perform(skeleton, ...)

Arguments

skeleton

A gptstudio_request_skeleton object

...

Extra arguments (e.g., stream_handler)

Value

A gptstudio_response_skeleton object

Examples

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