pub struct SyncChatApi { /* private fields */ }Expand description
Blocking wrapper for the legacy ChatApi.
Implementations§
Source§impl SyncChatApi
impl SyncChatApi
Sourcepub fn create(&self, model: impl Into<String>) -> SyncChatCompletionBuilder
pub fn create(&self, model: impl Into<String>) -> SyncChatCompletionBuilder
Create a blocking chat completion request builder.
Trait Implementations§
Source§impl Clone for SyncChatApi
impl Clone for SyncChatApi
Source§fn clone(&self) -> SyncChatApi
fn clone(&self) -> SyncChatApi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SyncChatApi
impl !RefUnwindSafe for SyncChatApi
impl Send for SyncChatApi
impl Sync for SyncChatApi
impl Unpin for SyncChatApi
impl UnsafeUnpin for SyncChatApi
impl !UnwindSafe for SyncChatApi
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