pub struct ChatAskConfig {
pub base_url: Option<String>,
pub auth: EndpointAuthConfig,
pub adapter: Option<ChatAdapter>,
pub model: Option<String>,
pub context_tokens: u32,
pub max_output_tokens: u32,
pub planning_enable_thinking: Option<bool>,
pub synthesis_enable_thinking: Option<bool>,
pub planning_reasoning_effort: Option<ReasoningEffort>,
pub synthesis_reasoning_effort: Option<ReasoningEffort>,
pub planning_chat_template_kwargs: Option<BTreeMap<String, Value>>,
pub synthesis_chat_template_kwargs: Option<BTreeMap<String, Value>>,
}Expand description
Ask chat endpoint overrides ([chat.ask]).
Unset transport fields inherit from ChatExpansionConfig.
Fields§
§base_url: Option<String>§auth: EndpointAuthConfig§adapter: Option<ChatAdapter>§model: Option<String>§context_tokens: u32§max_output_tokens: u32§planning_enable_thinking: Option<bool>§synthesis_enable_thinking: Option<bool>§planning_reasoning_effort: Option<ReasoningEffort>§synthesis_reasoning_effort: Option<ReasoningEffort>§planning_chat_template_kwargs: Option<BTreeMap<String, Value>>§synthesis_chat_template_kwargs: Option<BTreeMap<String, Value>>Implementations§
Source§impl ChatAskConfig
impl ChatAskConfig
Sourcepub fn resolved_base_url<'a>(
&'a self,
expansion: &'a ChatExpansionConfig,
) -> &'a str
pub fn resolved_base_url<'a>( &'a self, expansion: &'a ChatExpansionConfig, ) -> &'a str
Effective chat-completions base URL.
Sourcepub fn resolved_model<'a>(
&'a self,
expansion: &'a ChatExpansionConfig,
) -> &'a str
pub fn resolved_model<'a>( &'a self, expansion: &'a ChatExpansionConfig, ) -> &'a str
Effective ask model name.
Sourcepub fn resolved_adapter(&self, expansion: &ChatExpansionConfig) -> ChatAdapter
pub fn resolved_adapter(&self, expansion: &ChatExpansionConfig) -> ChatAdapter
Effective chat adapter.
Sourcepub fn resolved_auth(
&self,
expansion: &ChatExpansionConfig,
) -> EndpointAuthConfig
pub fn resolved_auth( &self, expansion: &ChatExpansionConfig, ) -> EndpointAuthConfig
Merged auth: ask overrides win when set, otherwise expansion auth applies.
Trait Implementations§
Source§impl Clone for ChatAskConfig
impl Clone for ChatAskConfig
Source§fn clone(&self) -> ChatAskConfig
fn clone(&self) -> ChatAskConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChatAskConfig
impl Debug for ChatAskConfig
Source§impl Default for ChatAskConfig
impl Default for ChatAskConfig
Source§fn default() -> ChatAskConfig
fn default() -> ChatAskConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatAskConfig
impl<'de> Deserialize<'de> for ChatAskConfig
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
Source§impl PartialEq for ChatAskConfig
impl PartialEq for ChatAskConfig
Source§fn eq(&self, other: &ChatAskConfig) -> bool
fn eq(&self, other: &ChatAskConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChatAskConfig
impl Serialize for ChatAskConfig
impl Eq for ChatAskConfig
impl StructuralPartialEq for ChatAskConfig
Auto Trait Implementations§
impl Freeze for ChatAskConfig
impl RefUnwindSafe for ChatAskConfig
impl Send for ChatAskConfig
impl Sync for ChatAskConfig
impl Unpin for ChatAskConfig
impl UnsafeUnpin for ChatAskConfig
impl UnwindSafe for ChatAskConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more