pub struct FineTuneChatRequestInput {
pub messages: Option<Vec<FineTuneChatRequestInputMessages>>,
pub tools: Option<Vec<ChatCompletionTool>>,
pub parallel_tool_calls: Option<ParallelToolCalls>,
pub functions: Option<Vec<ChatCompletionFunctions>>,
}
Expand description
The per-line training example of a fine-tuning input file for chat models using the supervised method. Input messages may contain text or image content only. Audio and file input messages are not currently supported for fine-tuning.
Fields§
§messages: Option<Vec<FineTuneChatRequestInputMessages>>
§tools: Option<Vec<ChatCompletionTool>>
A list of tools the model may generate JSON inputs for.
parallel_tool_calls: Option<ParallelToolCalls>
§functions: Option<Vec<ChatCompletionFunctions>>
A list of functions the model may generate JSON inputs for.
Implementations§
Source§impl FineTuneChatRequestInput
impl FineTuneChatRequestInput
Sourcepub fn builder() -> FineTuneChatRequestInputBuilder<((), (), (), ())>
pub fn builder() -> FineTuneChatRequestInputBuilder<((), (), (), ())>
Create a builder for building FineTuneChatRequestInput
.
On the builder, call .messages(...)
(optional), .tools(...)
(optional), .parallel_tool_calls(...)
(optional), .functions(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of FineTuneChatRequestInput
.
Trait Implementations§
Source§impl Clone for FineTuneChatRequestInput
impl Clone for FineTuneChatRequestInput
Source§fn clone(&self) -> FineTuneChatRequestInput
fn clone(&self) -> FineTuneChatRequestInput
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FineTuneChatRequestInput
impl Debug for FineTuneChatRequestInput
Source§impl Default for FineTuneChatRequestInput
impl Default for FineTuneChatRequestInput
Source§fn default() -> FineTuneChatRequestInput
fn default() -> FineTuneChatRequestInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FineTuneChatRequestInput
impl<'de> Deserialize<'de> for FineTuneChatRequestInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FineTuneChatRequestInput
impl PartialEq for FineTuneChatRequestInput
Source§fn eq(&self, other: &FineTuneChatRequestInput) -> bool
fn eq(&self, other: &FineTuneChatRequestInput) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for FineTuneChatRequestInput
impl Serialize for FineTuneChatRequestInput
impl StructuralPartialEq for FineTuneChatRequestInput
Auto Trait Implementations§
impl Freeze for FineTuneChatRequestInput
impl RefUnwindSafe for FineTuneChatRequestInput
impl Send for FineTuneChatRequestInput
impl Sync for FineTuneChatRequestInput
impl Unpin for FineTuneChatRequestInput
impl UnwindSafe for FineTuneChatRequestInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more