Struct openai_flows::EmbeddingsRequest
source · pub struct EmbeddingsRequest {
pub input: EmbeddingsInput,
pub retry_times: u8,
}
Expand description
Request struct for the embeddings.
Use retry_times to set the number of retries when requesting OpenAI’s api encounters a problem. The max number is 10. For more detail about parameters, please refer to OpenAI docs
Fields§
§input: EmbeddingsInput
§retry_times: u8
Trait Implementations§
source§impl Debug for EmbeddingsRequest
impl Debug for EmbeddingsRequest
Auto Trait Implementations§
impl RefUnwindSafe for EmbeddingsRequest
impl Send for EmbeddingsRequest
impl Sync for EmbeddingsRequest
impl Unpin 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