pub struct EmbeddingClientBuilder { /* private fields */ }Implementations§
Source§impl EmbeddingClientBuilder
impl EmbeddingClientBuilder
pub fn new() -> Self
pub fn model(self, model: impl Into<String>) -> Self
pub fn api_key(self, api_key: impl Into<String>) -> Self
pub fn base_url(self, url: impl Into<String>) -> Self
pub fn dimensions(self, dimensions: usize) -> Self
pub async fn build(self) -> Result<EmbeddingClient>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmbeddingClientBuilder
impl RefUnwindSafe for EmbeddingClientBuilder
impl Send for EmbeddingClientBuilder
impl Sync for EmbeddingClientBuilder
impl Unpin for EmbeddingClientBuilder
impl UnwindSafe for EmbeddingClientBuilder
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