Upload file

Purpose values and file formats

Each purpose value requires a specific JSONL schema. Each line of the file must be a valid JSON object matching the format for the chosen purpose.

fine-tune and alignment

Each line requires a messages array of {"role", "content"} objects. Valid roles are system, user, and assistant.

{"messages": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "What is the capital of France?"}, {"role": "assistant", "content": "The capital of France is Paris."}]}

preference-fine-tune

Each line requires three fields — messages, chosen, and rejected — each an array of {"role", "content"} objects.

{"messages": [{"role": "user", "content": "What is the capital of France?"}], "chosen": [{"role": "user", "content": "What is the capital of France?"}, {"role": "assistant", "content": "Paris."}], "rejected": [{"role": "user", "content": "What is the capital of France?"}, {"role": "assistant", "content": "Lyon."}]}

pre-train

Each line requires a single text field containing raw training text.

{"text": "Raw training text goes here."}
Body Params
string
enum
required
Allowed:
string
required
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json