pub struct CreateEmbeddingsRequest {
pub model: Model,
pub input: EmbeddingsInput,
pub user: Option<String>,
}
Expand description
A request struct for creating embeddings with the OpenAI API.
For more details, see the API documentation.
Fields§
§model: Model
Required. The ID of the model to use.
For example: "text-embedding-ada-002"
.
input: EmbeddingsInput
Required. The input text or tokens for which you want to generate embeddings.
user: Option<String>
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
Trait Implementations§
Source§impl Clone for CreateEmbeddingsRequest
impl Clone for CreateEmbeddingsRequest
Source§fn clone(&self) -> CreateEmbeddingsRequest
fn clone(&self) -> CreateEmbeddingsRequest
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 CreateEmbeddingsRequest
impl Debug for CreateEmbeddingsRequest
Auto Trait Implementations§
impl Freeze for CreateEmbeddingsRequest
impl RefUnwindSafe for CreateEmbeddingsRequest
impl Send for CreateEmbeddingsRequest
impl Sync for CreateEmbeddingsRequest
impl Unpin for CreateEmbeddingsRequest
impl UnwindSafe for CreateEmbeddingsRequest
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