pub struct Provider {Show 14 fields
pub allow_fallbacks: Option<bool>,
pub require_parameters: Option<bool>,
pub data_collection: Option<ProviderDataCollection>,
pub zdr: Option<bool>,
pub order: Option<Vec<String>>,
pub only: Option<Vec<String>>,
pub ignore: Option<Vec<String>>,
pub quantizations: Option<Vec<ProviderQuantization>>,
pub sort: Option<ProviderSort>,
pub max_price: Option<ProviderMaxPrice>,
pub preferred_min_throughput: Option<f64>,
pub preferred_max_latency: Option<f64>,
pub min_throughput: Option<f64>,
pub max_latency: Option<f64>,
}Expand description
Provider preferences merged from request and Ensemble LLM configuration.
Some fields come from the Ensemble LLM (allow_fallbacks, require_parameters, etc.) while others come from the request (data_collection, zdr, sort, etc.).
Fields§
§allow_fallbacks: Option<bool>Whether to allow fallback to other providers. From Ensemble LLM.
require_parameters: Option<bool>Whether to require all parameters. From Ensemble LLM.
data_collection: Option<ProviderDataCollection>Data collection preferences. From request.
zdr: Option<bool>Zero Data Retention preference. From request.
order: Option<Vec<String>>Provider order preference. From Ensemble LLM.
only: Option<Vec<String>>Only use these providers. From Ensemble LLM.
ignore: Option<Vec<String>>Ignore these providers. From Ensemble LLM.
quantizations: Option<Vec<ProviderQuantization>>Allowed quantizations. From Ensemble LLM.
sort: Option<ProviderSort>Provider sort preference. From request.
max_price: Option<ProviderMaxPrice>Maximum price constraints. From request.
preferred_min_throughput: Option<f64>Preferred minimum throughput. From request.
preferred_max_latency: Option<f64>Preferred maximum latency. From request.
min_throughput: Option<f64>Hard minimum throughput requirement. From request.
max_latency: Option<f64>Hard maximum latency requirement. From request.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Provider
impl<'de> Deserialize<'de> for Provider
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>,
Auto Trait Implementations§
impl Freeze for Provider
impl RefUnwindSafe for Provider
impl Send for Provider
impl Sync for Provider
impl Unpin for Provider
impl UnwindSafe for Provider
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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