pub enum ApiErrorCut {
OutputLimit,
ContextWindow,
Unknown(String),
}Expand description
Which API stop reason cut a reply short (ApiErrorParams::cut).
Variants§
OutputLimit
max_tokens: the request’s output-token maximum.
ContextWindow
model_context_window_exceeded: the model’s context window.
Unknown(String)
A value not yet known to this version of the crate.
Implementations§
Trait Implementations§
Source§impl Clone for ApiErrorCut
impl Clone for ApiErrorCut
Source§impl Debug for ApiErrorCut
impl Debug for ApiErrorCut
Source§impl<'de> Deserialize<'de> for ApiErrorCut
impl<'de> Deserialize<'de> for ApiErrorCut
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ApiErrorCut
impl Display for ApiErrorCut
impl Eq for ApiErrorCut
Source§impl From<&str> for ApiErrorCut
impl From<&str> for ApiErrorCut
Source§impl Hash for ApiErrorCut
impl Hash for ApiErrorCut
Source§impl PartialEq for ApiErrorCut
impl PartialEq for ApiErrorCut
Source§impl Serialize for ApiErrorCut
impl Serialize for ApiErrorCut
impl StructuralPartialEq for ApiErrorCut
Auto Trait Implementations§
impl Forget for ApiErrorCut
impl Freeze for ApiErrorCut
impl RefUnwindSafe for ApiErrorCut
impl Send for ApiErrorCut
impl Sync for ApiErrorCut
impl Unpin for ApiErrorCut
impl UnsafeUnpin for ApiErrorCut
impl UnwindSafe for ApiErrorCut
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