pub struct ProviderConfig {
pub api_key: String,
pub model: String,
pub base_url: Option<String>,
pub project_id: Option<String>,
pub location: Option<String>,
pub temperature: f32,
pub max_tokens: Option<u32>,
}Expand description
Legacy provider configuration (used by OpenAIClient/GeminiClient).
Fields§
§api_key: String§model: String§base_url: Option<String>§project_id: Option<String>§location: Option<String>§temperature: f32§max_tokens: Option<u32>Implementations§
Source§impl ProviderConfig
impl ProviderConfig
pub fn gemini(api_key: impl Into<String>, model: impl Into<String>) -> Self
pub fn openai(api_key: impl Into<String>, model: impl Into<String>) -> Self
pub fn openrouter(api_key: impl Into<String>, model: impl Into<String>) -> Self
pub fn vertex( access_token: impl Into<String>, project_id: impl Into<String>, model: impl Into<String>, ) -> Self
pub fn ollama(model: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ProviderConfig
impl Clone for ProviderConfig
Source§fn clone(&self) -> ProviderConfig
fn clone(&self) -> ProviderConfig
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 ProviderConfig
impl RefUnwindSafe for ProviderConfig
impl Send for ProviderConfig
impl Sync for ProviderConfig
impl Unpin for ProviderConfig
impl UnsafeUnpin for ProviderConfig
impl UnwindSafe for ProviderConfig
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