pub struct EmbeddingBatchError {
pub completed_calls: usize,
pub completed_items: usize,
pub failure: EmbeddingFailure,
}Expand description
Failure never presents completed partial vectors as a successful batch.
completed_calls counts 2xx calls whose JSON was decoded, including one
whose typed data proved invalid. A transport/body failure can have an
unknown upstream outcome; this counter is not a retry authorization.
completed_items counts only vectors validated before the failed call.
Fields§
§completed_calls: usize§completed_items: usize§failure: EmbeddingFailureTrait Implementations§
Source§impl Debug for EmbeddingBatchError
impl Debug for EmbeddingBatchError
Source§impl Display for EmbeddingBatchError
impl Display for EmbeddingBatchError
Source§impl Error for EmbeddingBatchError
impl Error for EmbeddingBatchError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<TransformError> for EmbeddingBatchError
impl From<TransformError> for EmbeddingBatchError
Source§fn from(error: TransformError) -> Self
fn from(error: TransformError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for EmbeddingBatchError
impl !Sync for EmbeddingBatchError
impl !UnwindSafe for EmbeddingBatchError
impl Freeze for EmbeddingBatchError
impl Send for EmbeddingBatchError
impl Unpin for EmbeddingBatchError
impl UnsafeUnpin for EmbeddingBatchError
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