mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
37 lines
795 B
C++
37 lines
795 B
C++
#ifndef LLM_H
|
|
#define LLM_H
|
|
|
|
#include <QObject>
|
|
|
|
class LLM : public QObject
|
|
{
|
|
Q_OBJECT
|
|
Q_PROPERTY(bool compatHardware READ compatHardware NOTIFY compatHardwareChanged)
|
|
|
|
public:
|
|
static LLM *globalInstance();
|
|
|
|
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;
|
|
Q_INVOKABLE qint64 systemTotalRAMInGB() const;
|
|
Q_INVOKABLE QString systemTotalRAMInGBString() const;
|
|
|
|
Q_SIGNALS:
|
|
void chatListModelChanged();
|
|
void modelListChanged();
|
|
void compatHardwareChanged();
|
|
|
|
private:
|
|
bool m_compatHardware;
|
|
|
|
private:
|
|
explicit LLM();
|
|
~LLM() {}
|
|
friend class MyLLM;
|
|
};
|
|
|
|
#endif // LLM_H
|