pub struct OpenAIRequest {
pub model: String,
pub messages: Vec<OpenAIMessage>,
pub temperature: Option<f32>,
pub max_tokens: Option<u32>,
pub top_p: Option<f32>,
pub frequency_penalty: Option<f32>,
pub presence_penalty: Option<f32>,
pub stream: Option<bool>,
pub tools: Option<Vec<Value>>,
pub tool_choice: Option<Value>,
}Fields§
§model: String§messages: Vec<OpenAIMessage>§temperature: Option<f32>§max_tokens: Option<u32>§top_p: Option<f32>§frequency_penalty: Option<f32>§presence_penalty: Option<f32>§stream: Option<bool>§tools: Option<Vec<Value>>§tool_choice: Option<Value>Trait Implementations§
Source§impl Debug for OpenAIRequest
impl Debug for OpenAIRequest
Auto Trait Implementations§
impl Freeze for OpenAIRequest
impl RefUnwindSafe for OpenAIRequest
impl Send for OpenAIRequest
impl Sync for OpenAIRequest
impl Unpin for OpenAIRequest
impl UnwindSafe for OpenAIRequest
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