pub struct LlmProfile {
pub endpoint: Option<LlmEndpoint>,
pub base_url: Option<String>,
pub api_key: Option<String>,
}Expand description
A per-model provider profile: how to reach the model when it differs from
the launch provider. Every field is optional — None means “leave the
launch provider’s value”, so an empty profile is a no-op and a profile may
override only base_url without resetting the endpoint.
Fields§
§endpoint: Option<LlmEndpoint>Endpoint for this model. None = keep the launch endpoint — so a
profile may override only base_url without silently toggling
chat ⇄ responses.
base_url: Option<String>Base URL for this model. None = inherit.
api_key: Option<String>API key for this model. None = inherit. No CLI flag surfaces a key;
env/file still feed to_llm_opts, and a profile sits above both.
Trait Implementations§
Source§impl Clone for LlmProfile
impl Clone for LlmProfile
Source§impl Debug for LlmProfile
impl Debug for LlmProfile
Source§impl Default for LlmProfile
impl Default for LlmProfile
impl Eq for LlmProfile
Source§impl PartialEq for LlmProfile
impl PartialEq for LlmProfile
impl StructuralPartialEq for LlmProfile
Auto Trait Implementations§
impl Freeze for LlmProfile
impl RefUnwindSafe for LlmProfile
impl Send for LlmProfile
impl Sync for LlmProfile
impl Unpin for LlmProfile
impl UnsafeUnpin for LlmProfile
impl UnwindSafe for LlmProfile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.