fix: Resolve thread-related QNetworkAccessManager issue (#140)

Fixes "QObject: Cannot create children for a parent that is in a different thread" error by creating QNetworkAccessManager in the same thread where it's used, ensuring proper thread affinity for network operations.
This commit is contained in:
Petr Mironychev
2025-03-16 09:47:04 +01:00
committed by GitHub
parent 91a6a88130
commit 8419577ae5
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,6 @@ public:
void handleLLMResponse(QNetworkReply *reply, const QJsonObject &request, const LLMConfig &config);
private:
QNetworkAccessManager *m_manager;
QMap<QString, QNetworkReply *> m_activeRequests;
QMap<QNetworkReply *, QString> m_accumulatedResponses;