OpenAI reference

Tags: Integration, OpenAI


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.


ChatGPTTask(*args, **kwargs)

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