mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2026-07-17 10:04:53 +00:00
Compare commits
22 Commits
v3.8.0
...
ci-run-cla
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
830f698365 | ||
|
|
834ea755f3 | ||
|
|
7ed66a6518 | ||
|
|
7c575a2ca0 | ||
|
|
52d35aa49f | ||
|
|
a937aca2ba | ||
|
|
ed3d68436f | ||
|
|
b7d2c85538 | ||
|
|
4f917bcde6 | ||
|
|
57ccac4888 | ||
|
|
510b7f38d8 | ||
|
|
0e794a0e4c | ||
|
|
f7c4bf3fe5 | ||
|
|
eae2b84557 | ||
|
|
b9412318d9 | ||
|
|
3187fd04a3 | ||
|
|
cc5f8b2053 | ||
|
|
e75eb1569d | ||
|
|
6d687885b6 | ||
|
|
7cda86988c | ||
|
|
9bd0644982 | ||
|
|
25833f4ec3 |
19
.github/workflows/codespell.yml
vendored
19
.github/workflows/codespell.yml
vendored
@@ -1,19 +0,0 @@
|
||||
---
|
||||
name: Codespell
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
codespell:
|
||||
name: Check for spelling errors
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Codespell
|
||||
uses: codespell-project/actions-codespell@v2
|
||||
46
.github/workflows/lint.yml
vendored
Normal file
46
.github/workflows/lint.yml
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
---
|
||||
name: Lint
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request: {}
|
||||
|
||||
jobs:
|
||||
codespell:
|
||||
name: Codespell
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4.2.1
|
||||
- name: Codespell
|
||||
uses: codespell-project/actions-codespell@v2.1
|
||||
|
||||
clazy:
|
||||
name: Clazy
|
||||
runs-on: ubuntu-24.04
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4.2.1
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install libopengl-dev qt6-base-private-dev qt6-declarative-dev qt6-httpserver-dev qt6-pdf-dev qt6-svg-dev qt6-tools-dev qt6-websockets-dev
|
||||
- name: Configure
|
||||
run: |
|
||||
cmake -S gpt4all-chat -B gpt4all-chat/build \
|
||||
-DCMAKE_C_COMPILER=clang \
|
||||
-DCMAKE_CXX_COMPILER=clang++ \
|
||||
-DLLMODEL_CUDA=OFF \
|
||||
-DLLMODEL_KOMPUTE=OFF
|
||||
- name: Clazy
|
||||
uses: nomic-ai/clazy-action@009a6378b899ab6d20f26647e624f3038384378e
|
||||
with:
|
||||
version: '1.12'
|
||||
checks: "level0,no-container-anti-pattern,no-qstring-arg,no-qstring-ref,no-strict-iterators,no-unused-non-trivial-variable"
|
||||
database: gpt4all-chat/build
|
||||
path-regex: "gpt4all-(chat|backend)/src"
|
||||
@@ -14,10 +14,13 @@
|
||||
#include <QStringList>
|
||||
#include <QVariant>
|
||||
#include <Qt>
|
||||
#include <QtLogging>
|
||||
|
||||
#include <utility>
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
|
||||
# include <QtLogging>
|
||||
#endif
|
||||
|
||||
Chat::Chat(QObject *parent)
|
||||
: QObject(parent)
|
||||
, m_id(Network::globalInstance()->generateUniqueId())
|
||||
|
||||
@@ -16,10 +16,13 @@
|
||||
#include <QVariant>
|
||||
#include <Qt>
|
||||
#include <QtGlobal>
|
||||
#include <QtLogging>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
|
||||
# include <QtLogging>
|
||||
#endif
|
||||
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
//#define DEBUG
|
||||
|
||||
@@ -16,7 +16,10 @@
|
||||
#include <QVector>
|
||||
#include <Qt>
|
||||
#include <QtGlobal>
|
||||
#include <QtLogging>
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
|
||||
# include <QtLogging>
|
||||
#endif
|
||||
|
||||
class ChatsRestoreThread : public QThread
|
||||
{
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
#include <QUrl>
|
||||
#include <QWaitCondition>
|
||||
#include <Qt>
|
||||
#include <QtLogging>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cctype>
|
||||
@@ -37,6 +36,10 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
|
||||
# include <QtLogging>
|
||||
#endif
|
||||
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
//#define DEBUG
|
||||
@@ -198,7 +201,7 @@ bool ChatLLM::loadDefaultModel()
|
||||
{
|
||||
ModelInfo defaultModel = ModelList::globalInstance()->defaultModelInfo();
|
||||
if (defaultModel.filename().isEmpty()) {
|
||||
emit modelLoadingError(u"Could not find any model to load"_qs);
|
||||
emit modelLoadingError(u"Could not find any model to load"_s);
|
||||
return false;
|
||||
}
|
||||
return loadModel(defaultModel);
|
||||
|
||||
@@ -24,13 +24,16 @@
|
||||
#include <QUtf8StringView>
|
||||
#include <QVariant>
|
||||
#include <Qt>
|
||||
#include <QtLogging>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <optional>
|
||||
#include <stdexcept>
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
|
||||
# include <QtLogging>
|
||||
#endif
|
||||
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
namespace ranges = std::ranges;
|
||||
namespace us = unum::usearch;
|
||||
|
||||
@@ -27,13 +27,16 @@
|
||||
#include <QVariant>
|
||||
#include <QVector>
|
||||
#include <Qt>
|
||||
#include <QtLogging>
|
||||
|
||||
#include <algorithm>
|
||||
#include <compare>
|
||||
#include <cstddef>
|
||||
#include <utility>
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
|
||||
# include <QtLogging>
|
||||
#endif
|
||||
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
class MyDownload: public Download { };
|
||||
|
||||
@@ -22,12 +22,15 @@
|
||||
#include <QUrl>
|
||||
#include <Qt>
|
||||
#include <QtGlobal>
|
||||
#include <QtLogging>
|
||||
|
||||
#include <exception>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
|
||||
# include <QtLogging>
|
||||
#endif
|
||||
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
static const QString EMBEDDING_MODEL_NAME = u"nomic-embed-text-v1.5"_s;
|
||||
|
||||
@@ -11,7 +11,10 @@
|
||||
#include <QProcess>
|
||||
#include <QSettings>
|
||||
#include <QUrl>
|
||||
#include <QtLogging>
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
|
||||
# include <QtLogging>
|
||||
#endif
|
||||
|
||||
#ifdef GPT4ALL_OFFLINE_INSTALLER
|
||||
# include <QDesktopServices>
|
||||
|
||||
@@ -3,7 +3,11 @@
|
||||
|
||||
#include <QFile>
|
||||
#include <QString>
|
||||
#include <QtLogging>
|
||||
#include <QtGlobal>
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
|
||||
# include <QtLogging>
|
||||
#endif
|
||||
|
||||
class Logger
|
||||
{
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
#include <QTextStream>
|
||||
#include <QTimer>
|
||||
#include <QUrl>
|
||||
#include <QtLogging>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstddef>
|
||||
@@ -41,6 +40,10 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
|
||||
# include <QtLogging>
|
||||
#endif
|
||||
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
//#define USE_LOCAL_MODELSJSON
|
||||
|
||||
@@ -15,13 +15,17 @@
|
||||
#include <QThread>
|
||||
#include <QUrl>
|
||||
#include <QVariant>
|
||||
#include <QtLogging>
|
||||
#include <QtGlobal>
|
||||
|
||||
#include <algorithm>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <vector>
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
|
||||
# include <QtLogging>
|
||||
#endif
|
||||
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
// used only for settings serialization, do not translate
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
#include <QSysInfo>
|
||||
#include <Qt>
|
||||
#include <QtGlobal>
|
||||
#include <QtLogging>
|
||||
#include <QUrl>
|
||||
#include <QUuid>
|
||||
|
||||
@@ -37,6 +36,10 @@
|
||||
#include <cstring>
|
||||
#include <utility>
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
|
||||
# include <QtLogging>
|
||||
#endif
|
||||
|
||||
#ifdef __GLIBC__
|
||||
# include <gnu/libc-version.h>
|
||||
#endif
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
#include <Qt>
|
||||
#include <QtCborCommon>
|
||||
#include <QtGlobal>
|
||||
#include <QtLogging>
|
||||
|
||||
#include <cstdint>
|
||||
#include <iostream>
|
||||
@@ -37,6 +36,9 @@
|
||||
#include <unordered_map>
|
||||
#include <utility>
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
|
||||
# include <QtLogging>
|
||||
#endif
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)
|
||||
# include <QTcpServer>
|
||||
#endif
|
||||
|
||||
@@ -16,10 +16,13 @@
|
||||
#include <QStringView>
|
||||
#include <QVariant>
|
||||
#include <QtGlobal>
|
||||
#include <QtLogging>
|
||||
|
||||
#include <memory>
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
|
||||
# include <QtLogging>
|
||||
#endif
|
||||
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user