pub struct EmbeddingRequest { /* private fields */ }Expand description
Implementations§
Source§impl EmbeddingRequest
impl EmbeddingRequest
Sourcepub fn new(model: EmbeddingModel, input: EmbeddingInput) -> Self
pub fn new(model: EmbeddingModel, input: EmbeddingInput) -> Self
Create a new embedding request for the given model and input.
Sourcepub fn with_dimensions(self, dims: EmbeddingDimensions) -> Self
pub fn with_dimensions(self, dims: EmbeddingDimensions) -> Self
Set the embedding vector dimensionality.
Auto Trait Implementations§
impl Freeze for EmbeddingRequest
impl RefUnwindSafe for EmbeddingRequest
impl Send for EmbeddingRequest
impl Sync for EmbeddingRequest
impl Unpin for EmbeddingRequest
impl UnsafeUnpin for EmbeddingRequest
impl UnwindSafe for EmbeddingRequest
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