pub struct AiOptions {
pub model: Option<String>,
pub temperature: Option<f64>,
pub max_tokens: Option<u64>,
}Expand description
ai.complete 的可选项;model 缺省用宿主配置。宿主钳制 temperature 0..=2、max_tokens 1..=32768。
Fields§
§model: Option<String>§temperature: Option<f64>§max_tokens: Option<u64>Trait Implementations§
Auto Trait Implementations§
impl Freeze for AiOptions
impl RefUnwindSafe for AiOptions
impl Send for AiOptions
impl Sync for AiOptions
impl Unpin for AiOptions
impl UnsafeUnpin for AiOptions
impl UnwindSafe for AiOptions
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