mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-10-22 08:30:55 +00:00
Add a reset context feature to clear the chat history and the context for now.
This commit is contained in:
3
llm.h
3
llm.h
@@ -18,6 +18,7 @@ public:
|
||||
bool loadModel();
|
||||
bool isModelLoaded() const;
|
||||
void resetResponse();
|
||||
void resetContext();
|
||||
void stopGenerating() { m_stopGenerating = true; }
|
||||
|
||||
QString response() const;
|
||||
@@ -53,6 +54,7 @@ public:
|
||||
|
||||
Q_INVOKABLE bool isModelLoaded() const;
|
||||
Q_INVOKABLE void prompt(const QString &prompt);
|
||||
Q_INVOKABLE void resetContext();
|
||||
Q_INVOKABLE void resetResponse();
|
||||
Q_INVOKABLE void stopGenerating();
|
||||
|
||||
@@ -65,6 +67,7 @@ Q_SIGNALS:
|
||||
void responseInProgressChanged();
|
||||
void promptRequested(const QString &prompt);
|
||||
void resetResponseRequested();
|
||||
void resetContextRequested();
|
||||
|
||||
private Q_SLOTS:
|
||||
void responseStarted();
|
||||
|
Reference in New Issue
Block a user