myllm.handler.g4f.G4fHandler#

class myllm.handler.g4f.G4fHandler(**kwargs)[source]#

Bases: AIClient

MyLLM class for G4F

Initialize the MyLLM object

Parameters:

None

Methods

chat(prompt)

Asynchronously chats with the user.

clear_chat_history()

Clears the chat history

export_chat_history()

Clears the chat history

import_chat_history()

Import chat history

vision(prompt)

async chat(prompt)[source]#

Asynchronously chats with the user.

Parameters:

prompt (str) – The prompt message from the user.

Returns:

The response from the conversation model.

Return type:

str

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)#