Don't store db results in ChatLLM.

This commit is contained in:
Adam Treat
2023-06-19 18:23:54 -04:00
committed by AT
parent 0cfe225506
commit a3a6a20146
5 changed files with 17 additions and 12 deletions

View File

@@ -61,7 +61,7 @@ public:
Q_INVOKABLE void stopGenerating();
Q_INVOKABLE void newPromptResponsePair(const QString &prompt);
QList<ResultInfo> databaseResults() const;
QList<ResultInfo> databaseResults() const { return m_databaseResults; }
QString response() const;
bool responseInProgress() const { return m_responseInProgress; }
@@ -133,6 +133,7 @@ private Q_SLOTS:
void handleModelNameChanged();
void handleModelLoadingError(const QString &error);
void handleTokenSpeedChanged(const QString &tokenSpeed);
void handleDatabaseResultsChanged(const QList<ResultInfo> &results);
private:
QString m_id;
@@ -147,6 +148,7 @@ private:
ResponseState m_responseState;
qint64 m_creationDate;
ChatLLM *m_llmodel;
QList<ResultInfo> m_databaseResults;
bool m_isServer;
bool m_shouldDeleteLater;
};