pub struct ProviderInfo {
pub name: &'static str,
pub base_url: &'static str,
pub context_limit: i32,
pub default_model: &'static str,
pub env_var: &'static str,
pub model_env_var: &'static str,
pub requires_api_key: bool,
}Expand description
Information about a known OpenAI-compatible provider.
Fields§
§name: &'static strDisplay name for the provider.
base_url: &'static strBase URL for the API endpoint.
context_limit: i32Default context window size.
default_model: &'static strDefault model to use if none specified.
env_var: &'static strEnvironment variable for API key.
model_env_var: &'static strEnvironment variable for model override.
requires_api_key: boolWhether this provider requires an API key. False for local providers like Ollama and LM Studio.
Trait Implementations§
Source§impl Clone for ProviderInfo
impl Clone for ProviderInfo
Source§fn clone(&self) -> ProviderInfo
fn clone(&self) -> ProviderInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§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 ProviderInfo
impl RefUnwindSafe for ProviderInfo
impl Send for ProviderInfo
impl Sync for ProviderInfo
impl Unpin for ProviderInfo
impl UnwindSafe for ProviderInfo
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