OpenAI API

FineTuneChatCompletionRequestAssistantMessage

weightinteger

Controls whether the assistant message is trained against (0 or 1)

Allowed values:1

contentOne Of
Text contentstring

The contents of the assistant message.

refusalstring

The refusal message by the assistant.

rolestringrequired

The role of the messages author, in this case assistant.

Allowed values:assistant

namestring

An optional name for the participant. Provides the model information to differentiate between participants of the same role.

audioobject

Data about a previous audio response from the model.
Learn more.

Show Child Parameters
tool_callsarray[object]

The tool calls generated by the model, such as function calls.

Show Child Parameters
function_callobjectDEPRECATED

Deprecated and replaced by tool_calls. The name and arguments of a function that should be called, as generated by the model.

Show Child Parameters
Example

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