mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-05 18:40:50 +00:00
Make installers work with mac/windows for big backend change.
This commit is contained in:
@@ -25,6 +25,13 @@ LLM::LLM()
|
||||
, m_serverEnabled(false)
|
||||
, m_compatHardware(true)
|
||||
{
|
||||
QString llmodelSearchPaths = QCoreApplication::applicationDirPath();
|
||||
#if defined(Q_OS_MAC)
|
||||
llmodelSearchPaths += ";" + QCoreApplication::applicationDirPath() + "../../../";
|
||||
llmodelSearchPaths += ";" + QCoreApplication::applicationDirPath() + "../Frameworks/";
|
||||
#endif
|
||||
LLModel::setImplementationsSearchPath(llmodelSearchPaths.toStdString());
|
||||
|
||||
connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit,
|
||||
this, &LLM::aboutToQuit);
|
||||
connect(this, &LLM::serverEnabledChanged,
|
||||
|
Reference in New Issue
Block a user