pub struct AdviceOptions {
pub task: Option<String>,
pub context: Option<f64>,
pub context_percent: Option<u8>,
pub max_context: bool,
pub backend: Option<String>,
pub available_backends: Option<Vec<String>>,
pub kv_cache: Option<KvCacheType>,
}Fields§
§task: Option<String>§context: Option<f64>§context_percent: Option<u8>§max_context: bool§backend: Option<String>§available_backends: Option<Vec<String>>§kv_cache: Option<KvCacheType>Implementations§
Source§impl AdviceOptions
impl AdviceOptions
pub fn validate(&self) -> Result<(), ValidationError>
pub fn tokens(&self, model: &CatalogModel) -> Option<f64>
Trait Implementations§
Source§impl Debug for AdviceOptions
impl Debug for AdviceOptions
Source§impl Default for AdviceOptions
impl Default for AdviceOptions
Source§impl<'de> Deserialize<'de> for AdviceOptions
impl<'de> Deserialize<'de> for AdviceOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AdviceOptions
impl RefUnwindSafe for AdviceOptions
impl Send for AdviceOptions
impl Sync for AdviceOptions
impl Unpin for AdviceOptions
impl UnsafeUnpin for AdviceOptions
impl UnwindSafe for AdviceOptions
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