Skip to main content

RequestDefaultsConfig

Struct RequestDefaultsConfig 

Source
pub struct RequestDefaultsConfig {
Show 39 fields pub max_tokens: Option<u32>, pub stop: Option<StringOrStringList>, pub temperature: Option<f64>, pub top_p: Option<f64>, pub top_k: Option<i64>, pub min_p: Option<f64>, pub typical_p: Option<f64>, pub top_nsigma: Option<f64>, pub dynatemp_range: Option<f64>, pub dynatemp_exponent: Option<f64>, pub repeat_penalty: Option<f64>, pub repeat_last_n: Option<i64>, pub presence_penalty: Option<f64>, pub frequency_penalty: Option<f64>, pub dry: Option<ReservedObjectConfig>, pub xtc: Option<ReservedObjectConfig>, pub adaptive: Option<ReservedObjectConfig>, pub mirostat_mode: Option<IntegerOrString>, pub mirostat_entropy: Option<f64>, pub mirostat_learning_rate: Option<f64>, pub samplers: Option<Vec<String>>, pub sampler_sequence: Option<String>, pub seed: Option<i64>, pub logit_bias: Option<Value>, pub ignore_eos: Option<bool>, pub backend_sampling: Option<Value>, pub reasoning_format: Option<String>, pub reasoning_enabled: Option<ReasoningEnabled>, pub reasoning_budget: Option<ReasoningBudget>, pub chat_template: Option<String>, pub chat_template_file: Option<String>, pub jinja: Option<bool>, pub chat_template_kwargs: Option<Value>, pub skip_chat_parsing: Option<bool>, pub prefill_assistant: Option<Value>, pub system_prompt: Option<String>, pub grammar: Option<Value>, pub json_schema: Option<Value>, pub logprobs: Option<Value>,
}

Fields§

§max_tokens: Option<u32>§stop: Option<StringOrStringList>§temperature: Option<f64>§top_p: Option<f64>§top_k: Option<i64>§min_p: Option<f64>§typical_p: Option<f64>§top_nsigma: Option<f64>§dynatemp_range: Option<f64>§dynatemp_exponent: Option<f64>§repeat_penalty: Option<f64>§repeat_last_n: Option<i64>§presence_penalty: Option<f64>§frequency_penalty: Option<f64>§dry: Option<ReservedObjectConfig>§xtc: Option<ReservedObjectConfig>§adaptive: Option<ReservedObjectConfig>§mirostat_mode: Option<IntegerOrString>§mirostat_entropy: Option<f64>§mirostat_learning_rate: Option<f64>§samplers: Option<Vec<String>>§sampler_sequence: Option<String>§seed: Option<i64>§logit_bias: Option<Value>§ignore_eos: Option<bool>§backend_sampling: Option<Value>§reasoning_format: Option<String>§reasoning_enabled: Option<ReasoningEnabled>§reasoning_budget: Option<ReasoningBudget>§chat_template: Option<String>§chat_template_file: Option<String>§jinja: Option<bool>§chat_template_kwargs: Option<Value>§skip_chat_parsing: Option<bool>§prefill_assistant: Option<Value>§system_prompt: Option<String>§grammar: Option<Value>§json_schema: Option<Value>§logprobs: Option<Value>

Trait Implementations§

Source§

impl Clone for RequestDefaultsConfig

Source§

fn clone(&self) -> RequestDefaultsConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RequestDefaultsConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RequestDefaultsConfig

Source§

fn default() -> RequestDefaultsConfig

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for RequestDefaultsConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for RequestDefaultsConfig

Source§

fn eq(&self, other: &RequestDefaultsConfig) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for RequestDefaultsConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for RequestDefaultsConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.