This commit is contained in:
Jared Van Bortel 2025-02-20 13:09:23 -05:00
parent 076799aaa8
commit bc0598565a
11 changed files with 22 additions and 16 deletions

2
.gitmodules vendored
View File

@ -10,7 +10,7 @@
url = https://github.com/nomic-ai/SingleApplication.git
[submodule "gpt4all-chat/deps/fmt"]
path = deps/fmt
url = https://github.com/fmtlib/fmt.git
url = https://github.com/nomic-ai/fmt.git
[submodule "gpt4all-chat/deps/DuckX"]
path = gpt4all-chat/deps/DuckX
url = https://github.com/nomic-ai/DuckX.git

2
deps/fmt vendored

@ -1 +1 @@
Subproject commit 0c9fce2ffefecfdce794e1859584e25877b7b592
Subproject commit 55a1103e5feb5200c004d9331863014b7835ca52

@ -1 +1 @@
Subproject commit 11f734c3b0334dbae4823b4a7467764e447fc6d6
Subproject commit 4a59c79eae0847bf618c2d1b25c35616c1f6a838

View File

@ -1,9 +1,9 @@
#include <QLatin1StringView>
import fmt;
import gpt4all.backend.main;
import gpt4all.test.config;
#include <QLatin1StringView>
using gpt4all::backend::LLMProvider;

View File

@ -386,6 +386,7 @@ qt_add_translations(chat
)
set_target_properties(chat PROPERTIES
CXX_SCAN_FOR_MODULES ON
WIN32_EXECUTABLE TRUE
)
@ -614,3 +615,7 @@ else()
cpack_ifw_add_repository("GPT4AllRepository" URL "https://gpt4all.io/installer_repos/mac/repository")
endif()
endif()
set_source_files_properties(
"chat_autogen/mocs_compilation.cpp"
PROPERTIES CXX_SCAN_FOR_MODULES ON
)

View File

@ -11,7 +11,6 @@
#include "toolmodel.h"
#include "toolcallparser.h"
#include <fmt/format.h>
#include <minja/minja.hpp>
#include <nlohmann/json.hpp>
@ -54,6 +53,8 @@
#include <utility>
#include <vector>
import fmt;
using namespace Qt::Literals::StringLiterals;
using namespace ToolEnums;
namespace ranges = std::ranges;

View File

@ -7,8 +7,6 @@
#include "utils.h"
#include "xlsxtomd.h"
#include <fmt/format.h>
#include <QApplication>
#include <QAbstractListModel>
#include <QBuffer>
@ -33,6 +31,8 @@
#include <utility>
#include <vector>
import fmt;
using namespace Qt::Literals::StringLiterals;
namespace ranges = std::ranges;
namespace views = std::views;

View File

@ -4,7 +4,6 @@
#include "utils.h"
#include <duckx/duckx.hpp>
#include <fmt/format.h>
#include <usearch/index_plugins.hpp>
#include <QByteArrayView>
@ -39,6 +38,8 @@
# include <fpdf_text.h>
#endif
import fmt;
using namespace Qt::Literals::StringLiterals;
namespace ranges = std::ranges;
namespace us = unum::usearch;

View File

@ -2,8 +2,6 @@
#include "utils.h"
#include <fmt/format.h>
#include <QString>
#include <QUrl>
@ -12,6 +10,8 @@
#include <ranges>
#include <vector>
import fmt;
namespace views = std::views;
using json = nlohmann::ordered_json;

View File

@ -6,8 +6,6 @@
#include "mysettings.h"
#include "utils.h"
#include <fmt/format.h>
#include <QByteArray>
#include <QCborArray>
#include <QCborMap>
@ -42,6 +40,8 @@
# include <QTcpServer>
#endif
import fmt;
using namespace std::string_literals;
using namespace Qt::Literals::StringLiterals;

View File

@ -1,8 +1,5 @@
#pragma once
#include <fmt/base.h>
#include <fmt/format.h>
#include <QByteArray>
#include <QJsonValue>
#include <QLatin1StringView>
@ -15,6 +12,8 @@
#include <string_view>
#include <utility>
import fmt;
class QJsonObject;