pub struct ProviderModelProfile {
pub provider: Provider,
pub doc_url: &'static str,
pub fallback_models: &'static [&'static str],
}Expand description
Static metadata describing recommended models per provider.
This data is intentionally lightweight so we can provide reasonable fallbacks
without hard-coding every possible model permutation. Enterprise/pro releases
can override/extend this registry via a custom ModelResolver.
Fields§
§provider: Provider§doc_url: &'static str§fallback_models: &'static [&'static str]Implementations§
Source§impl ProviderModelProfile
impl ProviderModelProfile
pub fn default_chat_model(&self) -> &'static str
Trait Implementations§
Source§impl Clone for ProviderModelProfile
impl Clone for ProviderModelProfile
Source§fn clone(&self) -> ProviderModelProfile
fn clone(&self) -> ProviderModelProfile
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProviderModelProfile
impl RefUnwindSafe for ProviderModelProfile
impl Send for ProviderModelProfile
impl Sync for ProviderModelProfile
impl Unpin for ProviderModelProfile
impl UnwindSafe for ProviderModelProfile
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)