pub struct V1Config {Show 14 fields
pub api_key: Option<Value>,
pub api_url: Option<Value>,
pub api_path: Option<Value>,
pub default_provider: Option<Value>,
pub default_model: Option<Value>,
pub model_providers: HashMap<String, Value>,
pub default_temperature: Option<Value>,
pub provider_timeout_secs: Option<Value>,
pub provider_max_tokens: Option<Value>,
pub extra_headers: HashMap<String, Value>,
pub model_routes: Vec<Value>,
pub embedding_routes: Vec<Value>,
pub channels_config: Option<Value>,
pub passthrough: Map<String, Value>,
}Expand description
V1 partial typed lens. Names only fields that change in the V1→V2
step; everything else rides through passthrough.
Fields§
§api_key: Option<Value>§api_url: Option<Value>§api_path: Option<Value>§default_provider: Option<Value>§default_model: Option<Value>§model_providers: HashMap<String, Value>§default_temperature: Option<Value>§provider_timeout_secs: Option<Value>§provider_max_tokens: Option<Value>§extra_headers: HashMap<String, Value>§model_routes: Vec<Value>§embedding_routes: Vec<Value>§channels_config: Option<Value>§passthrough: Map<String, Value>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for V1Config
impl<'de> Deserialize<'de> for V1Config
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<V1Config, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<V1Config, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for V1Config
impl Serialize for V1Config
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for V1Config
impl RefUnwindSafe for V1Config
impl Send for V1Config
impl Sync for V1Config
impl Unpin for V1Config
impl UnsafeUnpin for V1Config
impl UnwindSafe for V1Config
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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