pub struct ModelsConfig {
pub providers: IndexMap<String, ProviderConfig>,
}Expand description
The models.json document. Mirrors TS { providers: Record<id, ProviderConfig> }
(core/model-config.ts ModelsConfigSchema).
Fields§
§providers: IndexMap<String, ProviderConfig>Trait Implementations§
Source§impl Clone for ModelsConfig
impl Clone for ModelsConfig
Source§impl Debug for ModelsConfig
impl Debug for ModelsConfig
Source§impl Default for ModelsConfig
impl Default for ModelsConfig
Source§impl<'de> Deserialize<'de> for ModelsConfig
impl<'de> Deserialize<'de> for ModelsConfig
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
Auto Trait Implementations§
impl Forget for ModelsConfig
impl Freeze for ModelsConfigwhere
*const u8 is !null: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, ProviderConfig>>: Freeze,
impl Move for ModelsConfig
impl RefUnwindSafe for ModelsConfig
impl Send for ModelsConfig
impl Sync for ModelsConfig
impl Unpin for ModelsConfig
impl UnsafeUnpin for ModelsConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, ProviderConfig>>: UnsafeUnpin,
impl UnwindSafe for ModelsConfigwhere
NonNull<u8>: UnwindSafe,
RawVecInner: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
BTreeMap<ThinkingLevel, Option<String>>: UnwindSafe,
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