pub struct EmbeddingBatchOptions {
pub codec: CodecLimits,
pub usage_per_call: Vec<Option<OpenAiUsageFacts>>,
}Fields§
§codec: CodecLimitsBounds each HTTP call and the aggregate encoded successful output.
usage_per_call: Vec<Option<OpenAiUsageFacts>>Optional actual usage for each planned call, used only where the target does not return it. Empty means no supplements; otherwise length must equal the number of calls after packing by encoded bytes.
Trait Implementations§
Source§impl Clone for EmbeddingBatchOptions
impl Clone for EmbeddingBatchOptions
Auto Trait Implementations§
impl Freeze for EmbeddingBatchOptions
impl RefUnwindSafe for EmbeddingBatchOptions
impl Send for EmbeddingBatchOptions
impl Sync for EmbeddingBatchOptions
impl Unpin for EmbeddingBatchOptions
impl UnsafeUnpin for EmbeddingBatchOptions
impl UnwindSafe for EmbeddingBatchOptions
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