pub struct OpenAiCompatibleConfig {
pub base_url: String,
pub api_key: String,
pub default_request: ProviderRequestConfig,
pub system_prompt: String,
}Fields§
§base_url: String§api_key: String§default_request: ProviderRequestConfig§system_prompt: StringImplementations§
Source§impl OpenAiCompatibleConfig
impl OpenAiCompatibleConfig
pub fn validated(&self) -> Result<(), OpenAiConfigError>
Trait Implementations§
Source§impl Clone for OpenAiCompatibleConfig
impl Clone for OpenAiCompatibleConfig
Source§fn clone(&self) -> OpenAiCompatibleConfig
fn clone(&self) -> OpenAiCompatibleConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OpenAiCompatibleConfig
impl RefUnwindSafe for OpenAiCompatibleConfig
impl Send for OpenAiCompatibleConfig
impl Sync for OpenAiCompatibleConfig
impl Unpin for OpenAiCompatibleConfig
impl UnsafeUnpin for OpenAiCompatibleConfig
impl UnwindSafe for OpenAiCompatibleConfig
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