pub struct EmbeddingsRequest {
pub model: String,
pub input: Value,
pub dimensions: Option<u32>,
}Expand description
Request body for /v1/embeddings.
Fields§
§model: StringModel name for embedding generation.
input: ValueInput payload (text, array of text, etc.).
dimensions: Option<u32>Optional embedding dimensions.
Implementations§
Trait Implementations§
Source§impl Clone for EmbeddingsRequest
impl Clone for EmbeddingsRequest
Source§fn clone(&self) -> EmbeddingsRequest
fn clone(&self) -> EmbeddingsRequest
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 moreSource§impl Debug for EmbeddingsRequest
impl Debug for EmbeddingsRequest
Auto Trait Implementations§
impl Freeze for EmbeddingsRequest
impl RefUnwindSafe for EmbeddingsRequest
impl Send for EmbeddingsRequest
impl Sync for EmbeddingsRequest
impl Unpin for EmbeddingsRequest
impl UnsafeUnpin for EmbeddingsRequest
impl UnwindSafe for EmbeddingsRequest
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