mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-28 16:27:31 +00:00
Couple of bugfixes.
This commit is contained in:
parent
2206fa7f8c
commit
42926a484f
@ -366,6 +366,7 @@ void Download::parseModelsJsonFile(const QByteArray &jsonData)
|
|||||||
modelInfo.isDefault = isDefault;
|
modelInfo.isDefault = isDefault;
|
||||||
modelInfo.bestGPTJ = bestGPTJ;
|
modelInfo.bestGPTJ = bestGPTJ;
|
||||||
modelInfo.bestLlama = bestLlama;
|
modelInfo.bestLlama = bestLlama;
|
||||||
|
modelInfo.bestMPT = bestMPT;
|
||||||
modelInfo.description = description;
|
modelInfo.description = description;
|
||||||
modelInfo.requires = requires;
|
modelInfo.requires = requires;
|
||||||
m_modelMap.insert(modelInfo.filename, modelInfo);
|
m_modelMap.insert(modelInfo.filename, modelInfo);
|
||||||
@ -431,7 +432,7 @@ void Download::handleErrorOccurred(QNetworkReply::NetworkError code)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
QString modelFilename = modelReply->url().fileName();
|
QString modelFilename = modelReply->url().fileName();
|
||||||
qWarning() << "ERROR: Network error occurred attemptint to download"
|
qWarning() << "ERROR: Network error occurred attempting to download"
|
||||||
<< modelFilename
|
<< modelFilename
|
||||||
<< "code:" << code
|
<< "code:" << code
|
||||||
<< "errorString" << modelReply->errorString();
|
<< "errorString" << modelReply->errorString();
|
||||||
|
@ -19,6 +19,7 @@ struct ModelInfo {
|
|||||||
Q_PROPERTY(bool isDefault MEMBER isDefault)
|
Q_PROPERTY(bool isDefault MEMBER isDefault)
|
||||||
Q_PROPERTY(bool bestGPTJ MEMBER bestGPTJ)
|
Q_PROPERTY(bool bestGPTJ MEMBER bestGPTJ)
|
||||||
Q_PROPERTY(bool bestLlama MEMBER bestLlama)
|
Q_PROPERTY(bool bestLlama MEMBER bestLlama)
|
||||||
|
Q_PROPERTY(bool bestMPT MEMBER bestMPT)
|
||||||
Q_PROPERTY(QString description MEMBER description)
|
Q_PROPERTY(QString description MEMBER description)
|
||||||
Q_PROPERTY(QString requires MEMBER requires)
|
Q_PROPERTY(QString requires MEMBER requires)
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ Dialog {
|
|||||||
padding: 20
|
padding: 20
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
font.bold: modelData.isDefault || modelData.bestGPTJ || modelData.bestLlama
|
font.bold: modelData.isDefault || modelData.bestGPTJ || modelData.bestLlama || modelData.bestMPT
|
||||||
color: theme.assistantColor
|
color: theme.assistantColor
|
||||||
Accessible.role: Accessible.Paragraph
|
Accessible.role: Accessible.Paragraph
|
||||||
Accessible.name: qsTr("Model file")
|
Accessible.name: qsTr("Model file")
|
||||||
@ -277,6 +277,7 @@ Dialog {
|
|||||||
let timeDifference = currentTime - lastUpdate[modelName].timestamp;
|
let timeDifference = currentTime - lastUpdate[modelName].timestamp;
|
||||||
let bytesDifference = bytesReceived - lastUpdate[modelName].bytesReceived;
|
let bytesDifference = bytesReceived - lastUpdate[modelName].bytesReceived;
|
||||||
let speed = (bytesDifference / timeDifference) * 1000; // bytes per second
|
let speed = (bytesDifference / timeDifference) * 1000; // bytes per second
|
||||||
|
delegateItem.downloading = true
|
||||||
|
|
||||||
// Update the speed label
|
// Update the speed label
|
||||||
let speedLabel = delegateItem.children.find(child => child.objectName === "speedLabel");
|
let speedLabel = delegateItem.children.find(child => child.objectName === "speedLabel");
|
||||||
|
Loading…
Reference in New Issue
Block a user