mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-07-03 18:48:19 +00:00
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
parent
1b87aa2dbc
commit
27c561aeb7
@ -228,7 +228,7 @@ void Network::sendOptOut()
|
|||||||
|
|
||||||
QJsonDocument doc;
|
QJsonDocument doc;
|
||||||
doc.setArray(array);
|
doc.setArray(array);
|
||||||
emit requestMixpanel(doc.toJson(QJsonDocument::Compact), true /*isOptOut*/);
|
emit requestMixpanel(doc.toJson(QJsonDocument::Compact));
|
||||||
|
|
||||||
#if defined(DEBUG)
|
#if defined(DEBUG)
|
||||||
printf("%s %s\n", qPrintable("opt_out"), qPrintable(doc.toJson(QJsonDocument::Indented)));
|
printf("%s %s\n", qPrintable("opt_out"), qPrintable(doc.toJson(QJsonDocument::Indented)));
|
||||||
@ -339,11 +339,8 @@ void Network::sendIpify()
|
|||||||
connect(reply, &QNetworkReply::finished, this, &Network::handleIpifyFinished);
|
connect(reply, &QNetworkReply::finished, this, &Network::handleIpifyFinished);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Network::sendMixpanel(const QByteArray &json, bool isOptOut)
|
void Network::sendMixpanel(const QByteArray &json)
|
||||||
{
|
{
|
||||||
if (!m_sendUsageStats)
|
|
||||||
return;
|
|
||||||
|
|
||||||
QUrl trackUrl("https://api.mixpanel.com/track");
|
QUrl trackUrl("https://api.mixpanel.com/track");
|
||||||
QNetworkRequest request(trackUrl);
|
QNetworkRequest request(trackUrl);
|
||||||
QSslConfiguration conf = request.sslConfiguration();
|
QSslConfiguration conf = request.sslConfiguration();
|
||||||
|
@ -37,7 +37,7 @@ private Q_SLOTS:
|
|||||||
void handleMixpanelFinished();
|
void handleMixpanelFinished();
|
||||||
void handleIsActiveChanged();
|
void handleIsActiveChanged();
|
||||||
void handleUsageStatsActiveChanged();
|
void handleUsageStatsActiveChanged();
|
||||||
void sendMixpanel(const QByteArray &json, bool isOptOut);
|
void sendMixpanel(const QByteArray &json);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void sendOptOut();
|
void sendOptOut();
|
||||||
|
Loading…
Reference in New Issue
Block a user