pub struct ClassifyOptions {
pub api_key: Option<String>,
pub headers: IndexMap<String, Option<String>>,
pub temperature: Option<f64>,
pub timeout_ms: Option<u64>,
pub max_retries: Option<u32>,
pub max_retry_delay_ms: Option<u64>,
pub cancel: CancellationToken,
}Expand description
Options of one classification.
Fields§
§api_key: Option<String>Credential for the service. llama.cpp servers may need none.
headers: IndexMap<String, Option<String>>Extra headers. None removes one.
temperature: Option<f64>Divides answer logits before they become probabilities. APIs that cannot apply it ignore it.
timeout_ms: Option<u64>Per-attempt timeout.
max_retries: Option<u32>Retries of retryable failures, or 2 when absent.
max_retry_delay_ms: Option<u64>Largest server-requested retry delay to honor.
cancel: CancellationTokenCancels the request.
Trait Implementations§
Source§impl Clone for ClassifyOptions
impl Clone for ClassifyOptions
Source§impl Debug for ClassifyOptions
impl Debug for ClassifyOptions
Auto Trait Implementations§
impl Freeze for ClassifyOptions
impl RefUnwindSafe for ClassifyOptions
impl Send for ClassifyOptions
impl Sync for ClassifyOptions
impl Unpin for ClassifyOptions
impl UnsafeUnpin for ClassifyOptions
impl UnwindSafe for ClassifyOptions
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