Upload a JSONL file populated with a list of training examples.

Each line of the file should be compatible with the OpenAI chat format, with additional optional fields.

OpenAI Fields

  • messages: Required - Formatted as a list of OpenAI chat completion messages. The list should end with an assistant message.
  • tools: Optional - An array of tools (functions) available for the model to call. For more information read OpenAI’s function calling docs.
  • tool_choice: Optional - You can set this to indicate that the model should be required to call the given tool. For more information read OpenAI’s function calling docs.

Deprecated

  • functions: Deprecated | Optional - An array of functions available for the model to call.
  • function_call: Deprecated | Optional - You can set this to indicate that the model should be required to call the given function.

You can include other parameters from the OpenAI chat completion input format (eg. temperature), but they will be ignored since they aren’t relevant for training.

Additional Fields

  • split: Optional - One of “TRAIN” or “TEST”. If you don’t set this field we’ll automatically divide your inputs into train and test splits with a target ratio of 90:10.

Example

...
{"messages":[{"role":"system","content":"You are a helpful assistant"},{"role":"user","content":"What is the capital of Tasmania?"},{"role":"assistant","content":null,"tool_calls":[{"id":"","type":"function","function":{"name":"identify_capital","arguments":"{\"capital\":\"Hobart\"}"}}]}],"tools":[{"type":"function","function":{"name":"identify_capital","parameters":{"type":"object","properties":{"capital":{"type":"string"}}}}}]}
{"messages":[{"role":"system","content":"You are a helpful assistant"},{"role":"user","content":"What is the capital of Sweden?"},{"role":"assistant","content":null,"tool_calls":[{"id":"","type":"function","function":{"name":"identify_capital","arguments":"{\"capital\":\"Stockholm\"}"}}]}],"tools":[{"type":"function","function":{"name":"identify_capital","parameters":{"type":"object","properties":{"capital":{"type":"string"}}}}}]}
...