pub struct EmbeddingCreateParams {
pub input: Value,
pub model: String,
pub dimensions: Option<i64>,
pub encoding_format: Option<EmbeddingCreateParamsEncodingFormat>,
pub user: Option<String>,
}Fields§
§input: ValueInput text to embed, encoded as a string or array of tokens.
model: StringID of the model to use.
dimensions: Option<i64>The number of dimensions the resulting output embeddings should have.
encoding_format: Option<EmbeddingCreateParamsEncodingFormat>The format to return the embeddings in.
user: Option<String>A unique identifier representing your end-user, which can help OpenAI to monitor
Trait Implementations§
Source§impl Clone for EmbeddingCreateParams
impl Clone for EmbeddingCreateParams
Source§fn clone(&self) -> EmbeddingCreateParams
fn clone(&self) -> EmbeddingCreateParams
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 EmbeddingCreateParams
impl Debug for EmbeddingCreateParams
Source§impl<'de> Deserialize<'de> for EmbeddingCreateParams
impl<'de> Deserialize<'de> for EmbeddingCreateParams
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
Auto Trait Implementations§
impl Freeze for EmbeddingCreateParams
impl RefUnwindSafe for EmbeddingCreateParams
impl Send for EmbeddingCreateParams
impl Sync for EmbeddingCreateParams
impl Unpin for EmbeddingCreateParams
impl UnsafeUnpin for EmbeddingCreateParams
impl UnwindSafe for EmbeddingCreateParams
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