pub struct AzureConfig { /* private fields */ }
Expand description
Configuration for Azure OpenAI Service
Implementations§
source§impl AzureConfig
impl AzureConfig
pub fn new() -> Self
pub fn with_api_version<S: Into<String>>(self, api_version: S) -> Self
pub fn with_deployment_id<S: Into<String>>(self, deployment_id: S) -> Self
sourcepub fn with_api_key<S: Into<String>>(self, api_key: S) -> Self
pub fn with_api_key<S: Into<String>>(self, api_key: S) -> Self
To use a different API key different from default OPENAI_API_KEY env var
sourcepub fn with_api_base<S: Into<String>>(self, api_base: S) -> Self
pub fn with_api_base<S: Into<String>>(self, api_base: S) -> Self
API base url in form of https://your-resource-name.openai.azure.com
Trait Implementations§
source§impl Clone for AzureConfig
impl Clone for AzureConfig
source§fn clone(&self) -> AzureConfig
fn clone(&self) -> AzureConfig
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Config for AzureConfig
impl Config for AzureConfig
source§impl Debug for AzureConfig
impl Debug for AzureConfig
source§impl Default for AzureConfig
impl Default for AzureConfig
source§impl<'de> Deserialize<'de> for AzureConfigwhere
AzureConfig: Default,
impl<'de> Deserialize<'de> for AzureConfigwhere
AzureConfig: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AzureConfig
impl RefUnwindSafe for AzureConfig
impl Send for AzureConfig
impl Sync for AzureConfig
impl Unpin for AzureConfig
impl UnwindSafe for AzureConfig
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)