pub struct GroqChatModel { /* private fields */ }Implementations§
Source§impl GroqChatModel
impl GroqChatModel
pub fn new(config: GroqConfig, backend: Arc<dyn ProviderBackend>) -> Self
Trait Implementations§
Source§impl ChatModel for GroqChatModel
impl ChatModel for GroqChatModel
fn chat<'life0, 'async_trait>(
&'life0 self,
request: ChatRequest,
) -> Pin<Box<dyn Future<Output = Result<ChatResponse, SynapticError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream_chat(&self, request: ChatRequest) -> ChatStream<'_>
Source§fn profile(&self) -> Option<ModelProfile>
fn profile(&self) -> Option<ModelProfile>
Return the model’s capability profile, if known.
Auto Trait Implementations§
impl Freeze for GroqChatModel
impl !RefUnwindSafe for GroqChatModel
impl Send for GroqChatModel
impl Sync for GroqChatModel
impl Unpin for GroqChatModel
impl UnsafeUnpin for GroqChatModel
impl !UnwindSafe for GroqChatModel
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