pub struct InstructorClient { /* private fields */ }
Implementations§
Source§impl InstructorClient
impl InstructorClient
pub fn new(client: Client) -> Self
pub fn chat_completion<T>(
&self,
req: ChatCompletionRequest,
max_retries: u8,
) -> Result<T, APIError>where
T: InstructMacro + for<'de> Deserialize<'de>,
Auto Trait Implementations§
impl Freeze for InstructorClient
impl RefUnwindSafe for InstructorClient
impl Send for InstructorClient
impl Sync for InstructorClient
impl Unpin for InstructorClient
impl UnwindSafe for InstructorClient
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