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.
gptstudio_response_process(skeleton, ...)
A gptstudio_request_skeleton
with updated history and prompt removed
A gptstudio_response_skeleton
object
Extra arguments, not currently used
if (FALSE) {
gptstudio_response_process(gptstudio_skeleton)
}
Run the code above in your browser using DataLab