pub struct AzureOpenAiEmbeddingsConfig {
pub api_key: String,
pub resource_name: String,
pub deployment_name: String,
pub api_version: String,
pub model: String,
}Expand description
Configuration for Azure OpenAI embeddings.
Fields§
§api_key: String§resource_name: String§deployment_name: String§api_version: String§model: StringImplementations§
Source§impl AzureOpenAiEmbeddingsConfig
impl AzureOpenAiEmbeddingsConfig
Sourcepub fn new(
api_key: impl Into<String>,
resource_name: impl Into<String>,
deployment_name: impl Into<String>,
) -> Self
pub fn new( api_key: impl Into<String>, resource_name: impl Into<String>, deployment_name: impl Into<String>, ) -> Self
Create a new Azure OpenAI embeddings config.
pub fn with_api_version(self, version: impl Into<String>) -> Self
pub fn with_model(self, model: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for AzureOpenAiEmbeddingsConfig
impl Clone for AzureOpenAiEmbeddingsConfig
Source§fn clone(&self) -> AzureOpenAiEmbeddingsConfig
fn clone(&self) -> AzureOpenAiEmbeddingsConfig
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for AzureOpenAiEmbeddingsConfig
impl RefUnwindSafe for AzureOpenAiEmbeddingsConfig
impl Send for AzureOpenAiEmbeddingsConfig
impl Sync for AzureOpenAiEmbeddingsConfig
impl Unpin for AzureOpenAiEmbeddingsConfig
impl UnsafeUnpin for AzureOpenAiEmbeddingsConfig
impl UnwindSafe for AzureOpenAiEmbeddingsConfig
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