pub struct EmbeddingCreateRequest {
pub input: EmbeddingInput,
pub model: String,
pub encoding_format: Option<EncodingFormat>,
pub dimensions: Option<i64>,
pub user: Option<String>,
}Expand description
Request body for POST /embeddings.
Fields§
§input: EmbeddingInputInput text to embed.
model: StringEmbedding model (e.g. “text-embedding-3-small”).
encoding_format: Option<EncodingFormat>Encoding format for the embedding vectors.
dimensions: Option<i64>Number of dimensions to return (for supported models).
user: Option<String>A unique identifier representing your end-user.
Implementations§
Trait Implementations§
Source§impl Clone for EmbeddingCreateRequest
impl Clone for EmbeddingCreateRequest
Source§fn clone(&self) -> EmbeddingCreateRequest
fn clone(&self) -> EmbeddingCreateRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EmbeddingCreateRequest
impl Debug for EmbeddingCreateRequest
Auto Trait Implementations§
impl Freeze for EmbeddingCreateRequest
impl RefUnwindSafe for EmbeddingCreateRequest
impl Send for EmbeddingCreateRequest
impl Sync for EmbeddingCreateRequest
impl Unpin for EmbeddingCreateRequest
impl UnsafeUnpin for EmbeddingCreateRequest
impl UnwindSafe for EmbeddingCreateRequest
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