pub struct AzureOpenAiProvider { /* private fields */ }Expand description
Azure OpenAI provider.
URL format: {endpoint}/openai/deployments/{deployment}/chat/completions?api-version={api_version}
Auth header: api-key: {api_key} (NOT Bearer)
Supports model names prefixed with “azure:” (e.g. “azure:gpt-4o”).
Implementations§
Trait Implementations§
Source§impl LlmProvider for AzureOpenAiProvider
impl LlmProvider for AzureOpenAiProvider
Source§fn generate<'life0, 'async_trait>(
&'life0 self,
req: LlmRequest,
) -> Pin<Box<dyn Future<Output = Result<LlmResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn generate<'life0, 'async_trait>(
&'life0 self,
req: LlmRequest,
) -> Pin<Box<dyn Future<Output = Result<LlmResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Generate a response (non-streaming)
Source§fn supports_model(&self, model: &str) -> bool
fn supports_model(&self, model: &str) -> bool
Models supported by this provider (prefix matching)
Auto Trait Implementations§
impl Freeze for AzureOpenAiProvider
impl !RefUnwindSafe for AzureOpenAiProvider
impl Send for AzureOpenAiProvider
impl Sync for AzureOpenAiProvider
impl Unpin for AzureOpenAiProvider
impl UnsafeUnpin for AzureOpenAiProvider
impl !UnwindSafe for AzureOpenAiProvider
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