pub enum InstantiateError {
MaxCorrectionsExceeded {
messages: Vec<ChatCompletionRequestMessage>,
},
OpenAIError {
error: OpenAIError,
},
}
Variants§
MaxCorrectionsExceeded
The model was unable to instantiate a validated value. The messages contain the chat history for debugging purposes.
Fields
§
messages: Vec<ChatCompletionRequestMessage>
OpenAIError
An error occurred while communicating with the OpenAI API.
Fields
§
error: OpenAIError
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InstantiateError
impl !RefUnwindSafe for InstantiateError
impl Send for InstantiateError
impl Sync for InstantiateError
impl Unpin for InstantiateError
impl !UnwindSafe for InstantiateError
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