pub struct ModelRequest<'a> {
pub provider: Option<&'a str>,
pub api: Option<Api>,
pub model: Option<&'a str>,
pub thinking: Option<ThinkingLevel>,
pub api_key: Option<&'a str>,
pub base_url: Option<&'a str>,
}Expand description
An explicit selection, separate from defaults persisted by the host.
Fields§
§provider: Option<&'a str>§api: Option<Api>Select a wire protocol when a provider exposes the same ID through several APIs.
model: Option<&'a str>§thinking: Option<ThinkingLevel>§api_key: Option<&'a str>§base_url: Option<&'a str>Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ModelRequest<'a>
impl<'a> RefUnwindSafe for ModelRequest<'a>
impl<'a> Send for ModelRequest<'a>
impl<'a> Sync for ModelRequest<'a>
impl<'a> Unpin for ModelRequest<'a>
impl<'a> UnsafeUnpin for ModelRequest<'a>
impl<'a> UnwindSafe for ModelRequest<'a>
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