OpenAI API

FineTuneChatRequestInput

object

The per-line training example of a fine-tuning input file for chat models using the supervised method.

messagesOne Of
array

>= 1 items

System messageobject

Developer-provided instructions that the model should follow, regardless of
messages sent by the user. With o1 models and newer, use developer messages
for this purpose instead.

Show Child Parameters
toolsarray[object]

A list of tools the model may generate JSON inputs for.

Show Child Parameters
parallel_tool_callsboolean

Whether to enable parallel function calling during tool use.

Default:true

functionsarray[object]DEPRECATED

A list of functions the model may generate JSON inputs for.

>= 1 items<= 128 items

Show Child Parameters
Example

FineTuneCompletionRequestInput

object

The per-line training example of a fine-tuning input file for completions models

promptstring

The input prompt for this training example.

completionstring

The desired completion for this training example.

Example

FineTuneDPOMethod

object

Configuration for the DPO fine-tuning method.

hyperparametersobject

The hyperparameters used for the fine-tuning job.

Show Child Parameters
Example

FineTuneMethod

object

The method used for fine-tuning.

typestring

The type of method. Is either supervised or dpo.

Allowed values:superviseddpo

supervisedobject

Configuration for the supervised fine-tuning method.

Show Child Parameters
dpoobject

Configuration for the DPO fine-tuning method.

Show Child Parameters
Example

FineTunePreferenceRequestInput

object

The per-line training example of a fine-tuning input file for chat models using the dpo method.

inputobject
Show Child Parameters
preferred_completionOne Of
array

The preferred completion message for the output.

<= 1 items

Assistant messageobject

Messages sent by the model in response to user messages.

Show Child Parameters
non_preferred_completionOne Of
array

The non-preferred completion message for the output.

<= 1 items

Assistant messageobject

Messages sent by the model in response to user messages.

Show Child Parameters
Example