pub struct GrokModelConfig {
pub api_key: String,
pub model: String,
pub api_base_url: Option<String>,
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub max_tokens: Option<u32>,
}Expand description
Runtime configuration for GrokModel.
Fields§
§api_key: StringxAI API key.
model: StringModel id (for example grok-4-1-fast-reasoning).
api_base_url: Option<String>Optional base URL override.
temperature: Option<f32>Optional sampling temperature.
top_p: Option<f32>Optional nucleus sampling parameter.
max_tokens: Option<u32>Optional max output tokens.
Implementations§
Trait Implementations§
Source§impl Clone for GrokModelConfig
impl Clone for GrokModelConfig
Source§fn clone(&self) -> GrokModelConfig
fn clone(&self) -> GrokModelConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 GrokModelConfig
impl RefUnwindSafe for GrokModelConfig
impl Send for GrokModelConfig
impl Sync for GrokModelConfig
impl Unpin for GrokModelConfig
impl UnsafeUnpin for GrokModelConfig
impl UnwindSafe for GrokModelConfig
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