gptstudio_request_perform {gptstudio}R Documentation

Perform API Request

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

Arguments

skeleton

A gptstudio_request_skeleton object

...

Extra arguments (e.g., stream_handler)

Value

A gptstudio_response_skeleton object

Examples

## Not run: 
gptstudio_request_perform(gptstudio_skeleton)

## End(Not run)

[Package gptstudio version 0.4.0 Index]