pub struct Request {
pub model: String,
pub messages: Vec<OaiMessage>,
pub tools: Option<Vec<ToolDefinition>>,
pub tool_choice: Option<ToolChoice>,
pub stream: Option<bool>,
pub temperature: Option<f32>,
pub max_tokens: Option<u32>,
pub response_format: Option<ResponseFormat>,
pub extra_body: Option<Map<String, Value>>,
}Fields§
§model: String§messages: Vec<OaiMessage>§tools: Option<Vec<ToolDefinition>>§tool_choice: Option<ToolChoice>§stream: Option<bool>§temperature: Option<f32>§max_tokens: Option<u32>§response_format: Option<ResponseFormat>§extra_body: Option<Map<String, Value>>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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