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