pub enum ResolvedProvider {
OpenAi {
base_url: String,
api_key: String,
request_timeout_secs: Option<u64>,
},
Mistralrs,
}Expand description
Runtime-shaped provider view – mirrors the config LlmProvider enum, but
with the env-var-backed ApiKeyRef already resolved to a plain String
for the OpenAi variant. Variants are kept in sync with LlmProvider’s.
Variants§
Trait Implementations§
Source§impl Clone for ResolvedProvider
impl Clone for ResolvedProvider
Source§fn clone(&self) -> ResolvedProvider
fn clone(&self) -> ResolvedProvider
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 ResolvedProvider
impl Debug for ResolvedProvider
Source§impl PartialEq for ResolvedProvider
impl PartialEq for ResolvedProvider
Source§fn eq(&self, other: &ResolvedProvider) -> bool
fn eq(&self, other: &ResolvedProvider) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResolvedProvider
Auto Trait Implementations§
impl Freeze for ResolvedProvider
impl RefUnwindSafe for ResolvedProvider
impl Send for ResolvedProvider
impl Sync for ResolvedProvider
impl Unpin for ResolvedProvider
impl UnsafeUnpin for ResolvedProvider
impl UnwindSafe for ResolvedProvider
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