pub struct ChatApi { /* private fields */ }Implementations§
Source§impl ChatApi
impl ChatApi
pub fn new(http_client: ReqwestClient, config: &ClientConfig) -> Self
pub async fn completion( &self, request: ChatCompletionRequest, ) -> Result<ChatCompletionResponse>
pub fn completion_stream( &self, request: ChatCompletionRequest, ) -> Result<Pin<Box<dyn Stream<Item = Result<ChatCompletionChunk>> + Send>>>
Auto Trait Implementations§
impl Freeze for ChatApi
impl !RefUnwindSafe for ChatApi
impl Send for ChatApi
impl Sync for ChatApi
impl Unpin for ChatApi
impl !UnwindSafe for ChatApi
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