Struct async_openai::config::AzureConfig
source · 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.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 Config for AzureConfig
impl Config for AzureConfig
source§impl Debug for AzureConfig
impl Debug for AzureConfig
Auto Trait Implementations§
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