pub struct EmbeddingsRequest {
pub model: Option<String>,
pub input: Value,
pub encoding_format: Option<EmbeddingsRequestEncodingFormat>,
pub dimensions: Option<i64>,
}Expand description
EmbeddingsRequest model.
Fields§
§model: Option<String>Embedding model (optional; platform default used)
input: ValueInput text or array of texts
encoding_format: Option<EmbeddingsRequestEncodingFormat>Server default: "float".
dimensions: Option<i64>Requested embedding dimensions. Currently ignored: handler always emits the
platform-configured dimension (256 for the default multilingual-e5-large-instruct model).
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 (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 EmbeddingsRequest
impl Debug for EmbeddingsRequest
Source§impl Default for EmbeddingsRequest
impl Default for EmbeddingsRequest
Source§fn default() -> EmbeddingsRequest
fn default() -> EmbeddingsRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EmbeddingsRequest
impl<'de> Deserialize<'de> for EmbeddingsRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EmbeddingsRequest
impl PartialEq for EmbeddingsRequest
Source§impl Serialize for EmbeddingsRequest
impl Serialize for EmbeddingsRequest
impl StructuralPartialEq 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