gpt4all/gpt4all-chat/llm.h

35 lines
735 B
C
Raw Normal View History

2023-04-08 23:28:39 -04:00
#ifndef LLM_H
#define LLM_H
#include <QObject>
2023-04-08 23:28:39 -04:00
class LLM : public QObject
{
Q_OBJECT
public:
static LLM *globalInstance();
Q_INVOKABLE bool hasSettingsAccess() const;
Q_INVOKABLE bool compatHardware() const { return m_compatHardware; }
Q_INVOKABLE bool checkForUpdates() const;
Q_INVOKABLE bool directoryExists(const QString &path) const;
Q_INVOKABLE bool fileExists(const QString &path) const;
2023-06-22 15:44:49 -04:00
Q_INVOKABLE qint64 systemTotalRAMInGB() const;
Q_INVOKABLE QString systemTotalRAMInGBString() const;
2023-04-08 23:28:39 -04:00
Q_SIGNALS:
2023-05-01 17:13:20 -04:00
void chatListModelChanged();
2023-06-22 15:44:49 -04:00
void modelListChanged();
2023-04-08 23:28:39 -04:00
private:
bool m_compatHardware;
2023-04-08 23:28:39 -04:00
private:
explicit LLM();
~LLM() {}
friend class MyLLM;
};
#endif // LLM_H