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(pull : JSON::PullParser)
Sourcenew(messages : Array(FineTuneReinforcementRequestInputMessagesItem) = [] of FineTuneReinforcementRequestInputMessagesItem, tools : Array(ChatCompletionTool) | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
messages
SourceA list of tools the model may generate JSON inputs for.
validate!
Source