pub struct OpenAIConfig {
pub api_key: String,
pub base_url: String,
pub organization: Option<String>,
}Expand description
Configuration for the OpenAI provider
Fields§
§api_key: StringAPI key for authentication
base_url: StringBase URL for the API
organization: Option<String>Organization ID (optional)
Trait Implementations§
Source§impl Clone for OpenAIConfig
impl Clone for OpenAIConfig
Source§fn clone(&self) -> OpenAIConfig
fn clone(&self) -> OpenAIConfig
Returns a copy 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 moreSource§impl Debug for OpenAIConfig
impl Debug for OpenAIConfig
Auto Trait Implementations§
impl Freeze for OpenAIConfig
impl RefUnwindSafe for OpenAIConfig
impl Send for OpenAIConfig
impl Sync for OpenAIConfig
impl Unpin for OpenAIConfig
impl UnwindSafe for OpenAIConfig
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