pub struct EmbeddingsApi { /* private fields */ }Expand description
Embeddings API client.
Implementations§
Source§impl EmbeddingsApi
impl EmbeddingsApi
Sourcepub async fn create(
&self,
request: EmbeddingsRequest,
) -> Result<EmbeddingsResponse>
pub async fn create( &self, request: EmbeddingsRequest, ) -> Result<EmbeddingsResponse>
Create embeddings from an input payload.
Trait Implementations§
Source§impl Clone for EmbeddingsApi
impl Clone for EmbeddingsApi
Source§fn clone(&self) -> EmbeddingsApi
fn clone(&self) -> EmbeddingsApi
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 EmbeddingsApi
impl !RefUnwindSafe for EmbeddingsApi
impl Send for EmbeddingsApi
impl Sync for EmbeddingsApi
impl Unpin for EmbeddingsApi
impl UnsafeUnpin for EmbeddingsApi
impl !UnwindSafe for EmbeddingsApi
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