pub struct AzureOpenAiChatModel { /* private fields */ }Expand description
Azure OpenAI chat model.
Implementations§
Source§impl AzureOpenAiChatModel
impl AzureOpenAiChatModel
pub fn new(config: AzureOpenAiConfig, backend: Arc<dyn ProviderBackend>) -> Self
Sourcepub fn build_request(
&self,
request: &ChatRequest,
stream: bool,
) -> ProviderRequest
pub fn build_request( &self, request: &ChatRequest, stream: bool, ) -> ProviderRequest
Build a ProviderRequest targeting the Azure chat completions endpoint.
Trait Implementations§
Source§impl ChatModel for AzureOpenAiChatModel
impl ChatModel for AzureOpenAiChatModel
fn chat<'life0, 'async_trait>(
&'life0 self,
request: ChatRequest,
) -> Pin<Box<dyn Future<Output = Result<ChatResponse, SynapticError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream_chat(&self, request: ChatRequest) -> ChatStream<'_>
Source§fn profile(&self) -> Option<ModelProfile>
fn profile(&self) -> Option<ModelProfile>
Return the model’s capability profile, if known.
Auto Trait Implementations§
impl Freeze for AzureOpenAiChatModel
impl !RefUnwindSafe for AzureOpenAiChatModel
impl Send for AzureOpenAiChatModel
impl Sync for AzureOpenAiChatModel
impl Unpin for AzureOpenAiChatModel
impl UnsafeUnpin for AzureOpenAiChatModel
impl !UnwindSafe for AzureOpenAiChatModel
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