2023-04-09 03:28:39 +00:00
|
|
|
#ifndef LLM_H
|
|
|
|
#define LLM_H
|
|
|
|
|
|
|
|
#include <QObject>
|
2023-05-01 00:28:07 +00:00
|
|
|
|
2023-04-09 03:28:39 +00:00
|
|
|
class LLM : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
static LLM *globalInstance();
|
|
|
|
|
2023-07-12 12:50:21 +00:00
|
|
|
Q_INVOKABLE bool hasSettingsAccess() const;
|
|
|
|
Q_INVOKABLE bool compatHardware() const { return m_compatHardware; }
|
2023-05-01 18:24:16 +00:00
|
|
|
|
|
|
|
Q_INVOKABLE bool checkForUpdates() const;
|
2023-06-03 02:52:55 +00:00
|
|
|
Q_INVOKABLE bool directoryExists(const QString &path) const;
|
|
|
|
Q_INVOKABLE bool fileExists(const QString &path) const;
|
2023-06-22 19:44:49 +00:00
|
|
|
Q_INVOKABLE qint64 systemTotalRAMInGB() const;
|
|
|
|
Q_INVOKABLE QString systemTotalRAMInGBString() const;
|
2023-05-01 00:28:07 +00:00
|
|
|
|
2023-04-09 03:28:39 +00:00
|
|
|
Q_SIGNALS:
|
2023-05-01 21:13:20 +00:00
|
|
|
void chatListModelChanged();
|
2023-06-22 19:44:49 +00:00
|
|
|
void modelListChanged();
|
2023-04-09 03:28:39 +00:00
|
|
|
|
2023-05-01 18:24:16 +00:00
|
|
|
private:
|
2023-05-08 12:23:00 +00:00
|
|
|
bool m_compatHardware;
|
2023-04-09 03:28:39 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
explicit LLM();
|
|
|
|
~LLM() {}
|
|
|
|
friend class MyLLM;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LLM_H
|