This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
NG_2024_PacketAnalyzer/llmmanager.h

28 lines
507 B
C
Raw Normal View History

#ifndef LLMMANAGER_H
#define LLMMANAGER_H
#include <QJsonDocument>
#include <QJsonObject>
#include <QNetworkReply>
#include <QObject>
class LlmManager : public QObject
{
Q_OBJECT
public:
explicit LlmManager(QObject *parent = nullptr);
void llmRequest(QString);
signals:
void responseReceived(QString);
void errorReceived();
private slots:
void llmResponse(QNetworkReply *);
private:
QNetworkAccessManager *m_manager = new QNetworkAccessManager();
};
#endif // LLMMANAGER_H