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