pub struct CreateChatCompletionRequestArgs { /* private fields */ }Expand description
Builder for CreateChatCompletionRequest.
Implementations§
Source§impl CreateChatCompletionRequestArgs
impl CreateChatCompletionRequestArgs
pub fn messages<VALUE: Into<Vec<ChatCompletionRequestMessage>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn model<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn mm_processor_kwargs<VALUE: Into<Value>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn mm_processor_kwargs<VALUE: Into<Value>>( &mut self, value: VALUE, ) -> &mut Self
Multimodal processor configuration (vLLM-specific)
pub fn store<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn reasoning_effort<VALUE: Into<ReasoningEffort>>( &mut self, value: VALUE, ) -> &mut Self
pub fn metadata<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
pub fn frequency_penalty<VALUE: Into<f32>>(&mut self, value: VALUE) -> &mut Self
pub fn logit_bias<VALUE: Into<HashMap<String, Value>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn logprobs<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn top_logprobs<VALUE: Into<u8>>(&mut self, value: VALUE) -> &mut Self
pub fn max_tokens<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn max_completion_tokens<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
pub fn n<VALUE: Into<u8>>(&mut self, value: VALUE) -> &mut Self
pub fn modalities<VALUE: Into<Vec<ResponseModalities>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn prediction<VALUE: Into<PredictionContent>>( &mut self, value: VALUE, ) -> &mut Self
pub fn audio<VALUE: Into<ChatCompletionAudio>>( &mut self, value: VALUE, ) -> &mut Self
pub fn presence_penalty<VALUE: Into<f32>>(&mut self, value: VALUE) -> &mut Self
pub fn response_format<VALUE: Into<ResponseFormat>>( &mut self, value: VALUE, ) -> &mut Self
pub fn seed<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn service_tier<VALUE: Into<ServiceTier>>( &mut self, value: VALUE, ) -> &mut Self
pub fn stop<VALUE: Into<Stop>>(&mut self, value: VALUE) -> &mut Self
pub fn stream<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn stream_options<VALUE: Into<ChatCompletionStreamOptions>>( &mut self, value: VALUE, ) -> &mut Self
pub fn temperature<VALUE: Into<f32>>(&mut self, value: VALUE) -> &mut Self
pub fn top_p<VALUE: Into<f32>>(&mut self, value: VALUE) -> &mut Self
pub fn tools<VALUE: Into<Vec<ChatCompletionTool>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn tool_choice<VALUE: Into<ChatCompletionToolChoiceOption>>( &mut self, value: VALUE, ) -> &mut Self
pub fn parallel_tool_calls<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
pub fn user<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn function_call<VALUE: Into<ChatCompletionFunctionCall>>( &mut self, value: VALUE, ) -> &mut Self
pub fn functions<VALUE: Into<Vec<ChatCompletionFunctions>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn web_search_options<VALUE: Into<WebSearchOptions>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(&self) -> Result<CreateChatCompletionRequest, OpenAIError>
pub fn build(&self) -> Result<CreateChatCompletionRequest, OpenAIError>
Trait Implementations§
Source§impl Clone for CreateChatCompletionRequestArgs
impl Clone for CreateChatCompletionRequestArgs
Source§fn clone(&self) -> CreateChatCompletionRequestArgs
fn clone(&self) -> CreateChatCompletionRequestArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CreateChatCompletionRequestArgs
impl RefUnwindSafe for CreateChatCompletionRequestArgs
impl Send for CreateChatCompletionRequestArgs
impl Sync for CreateChatCompletionRequestArgs
impl Unpin for CreateChatCompletionRequestArgs
impl UnsafeUnpin for CreateChatCompletionRequestArgs
impl UnwindSafe for CreateChatCompletionRequestArgs
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