OpenAI reference

Tags: Integration, OpenAI

BatchEndpointAgent()

BatchEndpointTask(*args, **kwargs)

BatchResult(output_file, error_file)

DownloadJSONFilesTask(*args, **kwargs)

UploadJSONLFileTask(*args, **kwargs)

OpenAIFileConfig(openai_organization, secret)

create_batch(name, openai_organization, secret)

Uploads JSON data to a JSONL file, creates a batch, waits for it to complete, and downloads the output/error JSON files.

ChatGPTAgent()

ChatGPTTask(*args, **kwargs)

This is the simplest form of a ChatGPT Task, you can define the model and the input you want.