pub struct Groq { /* private fields */ }Expand description
Represents the Groq client.
Implementations§
Source§impl Groq
impl Groq
pub fn new<K: AsRef<str>>(token: K) -> Self
Sourcepub async fn create_chat_completion(
&self,
request: ChatCompletionRequest,
) -> Result<ChatCompletionResponse>
pub async fn create_chat_completion( &self, request: ChatCompletionRequest, ) -> Result<ChatCompletionResponse>
Creates chat completion.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Groq
impl !RefUnwindSafe for Groq
impl Send for Groq
impl Sync for Groq
impl Unpin for Groq
impl !UnwindSafe for Groq
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