Struct groq_api_rust::AsyncGroqClient
source · pub struct AsyncGroqClient { /* private fields */ }
Implementations§
source§impl AsyncGroqClient
impl AsyncGroqClient
pub fn new(api_key: String, endpoint: Option<String>) -> Self
pub async fn speech_to_text( &self, request: SpeechToTextRequest, ) -> Result<SpeechToTextResponse, GroqError>
pub async fn chat_completion( &self, request: ChatCompletionRequest, ) -> Result<ChatCompletionResponse, GroqError>
Auto Trait Implementations§
impl Freeze for AsyncGroqClient
impl !RefUnwindSafe for AsyncGroqClient
impl Send for AsyncGroqClient
impl Sync for AsyncGroqClient
impl Unpin for AsyncGroqClient
impl !UnwindSafe for AsyncGroqClient
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