Send info on how many are running into this error.

This commit is contained in:
Adam Treat 2023-05-08 08:31:35 -04:00
parent 6d943917f1
commit c054efa6ac
3 changed files with 11 additions and 2 deletions

View File

@ -25,9 +25,10 @@ Window {
// Startup code // Startup code
Component.onCompleted: { Component.onCompleted: {
if (!LLM.compatHardware) if (!LLM.compatHardware) {
Network.sendNonCompatHardware();
errorCompatHardware.open(); errorCompatHardware.open();
else } else
startupDialogs(); startupDialogs();
} }

View File

@ -358,6 +358,13 @@ void Network::sendRecalculatingContext(int conversationLength)
sendMixpanelEvent("recalc_context", QVector<KeyValue>{kv}); sendMixpanelEvent("recalc_context", QVector<KeyValue>{kv});
} }
void Network::sendNonCompatHardware()
{
if (!m_usageStatsActive)
return;
sendMixpanelEvent("noncompat_hardware");
}
void Network::sendMixpanelEvent(const QString &ev, const QVector<KeyValue> &values) void Network::sendMixpanelEvent(const QString &ev, const QVector<KeyValue> &values)
{ {
if (!m_usageStatsActive) if (!m_usageStatsActive)

View File

@ -51,6 +51,7 @@ public Q_SLOTS:
Q_INVOKABLE void sendNewChat(int count); Q_INVOKABLE void sendNewChat(int count);
Q_INVOKABLE void sendRemoveChat(); Q_INVOKABLE void sendRemoveChat();
Q_INVOKABLE void sendRenameChat(); Q_INVOKABLE void sendRenameChat();
Q_INVOKABLE void sendNonCompatHardware();
void sendChatStarted(); void sendChatStarted();
void sendRecalculatingContext(int conversationLength); void sendRecalculatingContext(int conversationLength);