myllm.handler.groq.GroqHandler#
- class myllm.handler.groq.GroqHandler(**kwargs)[source]#
Bases:
AIClientMyLLM class for Groq
Initialize the object with the given keyword arguments.
- Parameters:
kwargs – keyword arguments
- Returns:
None
Methods
chat(prompt)Asynchronously chats with the client based on the given prompt.
Clears the chat history
Clears the chat history
Import chat history
vision(prompt)- async chat(prompt)[source]#
Asynchronously chats with the client based on the given prompt.
- Parameters:
prompt – The prompt for the chat.
- Returns:
The response from the chat.
- async clear_chat_history()#
Clears the chat history
- async export_chat_history()#
Clears the chat history
- async import_chat_history()#
Import chat history
- async vision(prompt)#