mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-13 14:29:19 +00:00
Add save/restore to chatgpt chats and allow serialize/deseralize from disk.
This commit is contained in:
@@ -30,6 +30,9 @@ public:
|
||||
void setModelName(const QString &modelName) { m_modelName = modelName; }
|
||||
void setAPIKey(const QString &apiKey) { m_apiKey = apiKey; }
|
||||
|
||||
QList<QString> context() const { return m_context; }
|
||||
void setContext(const QList<QString> &context) { m_context = context; }
|
||||
|
||||
protected:
|
||||
void recalculateContext(PromptContext &promptCtx,
|
||||
std::function<bool(bool)> recalculate) override {}
|
||||
|
Reference in New Issue
Block a user