pub struct EmbedRequest<'input> {
pub model: Option<EmbedModel>,
pub texts: &'input [String],
pub truncate: Truncate,
}
Fields§
§model: Option<EmbedModel>
An optional string representing the model you’d like to use.
texts: &'input [String]
An array of strings for the model to embed.
truncate: Truncate
Specify how the API will handle inputs longer than the maximum token length.
Trait Implementations§
Source§impl<'input> Debug for EmbedRequest<'input>
impl<'input> Debug for EmbedRequest<'input>
Auto Trait Implementations§
impl<'input> Freeze for EmbedRequest<'input>
impl<'input> RefUnwindSafe for EmbedRequest<'input>
impl<'input> Send for EmbedRequest<'input>
impl<'input> Sync for EmbedRequest<'input>
impl<'input> Unpin for EmbedRequest<'input>
impl<'input> UnwindSafe for EmbedRequest<'input>
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