llm-chat 0.0.0
LLM-Chat
Loading...
Searching...
No Matches
TestChatBackend Class Reference
Inheritance diagram for TestChatBackend:
[legend]
Collaboration diagram for TestChatBackend:
[legend]

Public Member Functions

llm_chat::ThreadListgetThreadList ()
 
llm_chat::ThreadProxyListgetProxyList ()
 
- Public Member Functions inherited from llm_chat::ChatBackend
 ChatBackend (QObject *parent=nullptr)
 Constructs a new ChatBackend object.
 
ThreadListthreadList () const
 Returns the chat threads.
 
ThreadProxyListthreadProxyList () const
 Returns the sorted chat threads.
 
QString model () const
 Get the name of the model.
 
QStringList modelList () const
 Get the list of available models.
 
QString systemPrompt () const
 Get the system prompt.
 
QString ollamaServerUrl () const
 Get ollama server url.
 

Additional Inherited Members

- Public Slots inherited from llm_chat::ChatBackend
void setModel (const QString &model)
 Sets the model name.
 
void fetchModelList ()
 Fetches the list of available models from the Ollama server.
 
ThreadgetThread (const int index)
 Returns the thread at the given index.
 
void deleteThread (const int index)
 Removes the thread at the given index.
 
void clearThreads ()
 Removes all the threads.
 
void sendMessage (const int index, const QString &prompt)
 Sends a message to the Ollama server.
 
void setSystemPrompt (const QString &prompt)
 Set the system prompt.
 
void setOllamaServerUrl (const QString &url)
 Set the ollama server url.
 
void retryLatestMessage (const int index)
 Retries the latest message.
 
- Signals inherited from llm_chat::ChatBackend
void modelListFetched ()
 Emitted when the list of models is fetched.
 
void modelChanged ()
 Emitted when the model is changed.
 
void newThreadCreated ()
 Emitted when the current thread is changed.
 
void systemPromptChanged ()
 Emitted when the system prompt is changed.
 
void ollamaServerUrlChanged ()
 Emitted when the ollama server url is changed.
 
- Properties inherited from llm_chat::ChatBackend
ThreadProxyListsortedThreads
 
QString model
 
QStringList modelList
 
QString systemPrompt
 
QString ollamaServerUrl
 

Member Function Documentation

◆ getProxyList()

llm_chat::ThreadProxyList * TestChatBackend::getProxyList ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getThreadList()

llm_chat::ThreadList * TestChatBackend::getThreadList ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: