Skip to contents

All functions

batch_cancel()
Cancel batch job
batch_create()
Create batch
batch_list()
List all batches
batch_result()
Retrieve batch results
batch_status()
Retrieve batch status
compose_prompt() compose_sys_prompt() compose_usr_prompt()
Create a prompt to ChatGPT
compose_prompt_api()
Create a prompt to OpenAI API
create_jsonl_records()
Create jsonl records
create_usr_data_prompter()
Create a function to prompt the user for data
file_delete()
Delete file
file_info()
Retrieve file information
file_list()
List uploaded file
file_retrieve()
Retrieve file content
file_upload()
Upload batch file
get_completion_from_messages() get_content() get_tokens()
Get completion from chat messages
query_gpt()
Query the GPT model
query_gpt_on_column()
Query GPT on a dataframe's column
setup_py()
Setup Python environment
write_jsonl_files()
Write jsonl files