class

OpenAI::FineTuneReinforcementRequestInput

Inherits JSON::Serializable < Reference < Object

Per-line training example for reinforcement fine-tuning. Note that messages and tools are the only reserved keywords. Any other arbitrary key-value data can be included on training datapoints and will be available to reference during grading under the {{ item.XXX }} template variable. Input messages may contain text or image content only. Audio and file input messages are not currently supported for fine-tuning.

Constructors

new(messages : Array(FineTuneReinforcementRequestInputMessagesItem) = [] of FineTuneReinforcementRequestInputMessagesItem, tools : Array(ChatCompletionTool) | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

messages
Source
messages=(messages : Array(FineTuneReinforcementRequestInputMessagesItem))
Source
tools

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

Source
tools=(tools : Array(ChatCompletionTool) | Nil)

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

Source
validate!
Source