pub struct EmbeddingClient { /* private fields */ }Implementations§
Source§impl EmbeddingClient
impl EmbeddingClient
pub fn builder() -> EmbeddingClientBuilder
pub async fn embed(&self, text: &str) -> Result<EmbeddingResponse>
pub async fn embed_batch( &self, texts: &[impl AsRef<str>], ) -> Result<EmbeddingResponse>
pub fn model(&self) -> &str
Auto Trait Implementations§
impl Freeze for EmbeddingClient
impl !RefUnwindSafe for EmbeddingClient
impl Send for EmbeddingClient
impl Sync for EmbeddingClient
impl Unpin for EmbeddingClient
impl !UnwindSafe for EmbeddingClient
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