mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-23 22:18:38 +00:00
Try and fix mac.
This commit is contained in:
parent
45eca601c7
commit
b7d947b01d
@ -27,8 +27,12 @@ LLM::LLM()
|
||||
{
|
||||
QString llmodelSearchPaths = QCoreApplication::applicationDirPath();
|
||||
#if defined(Q_OS_MAC)
|
||||
llmodelSearchPaths += ";" + QCoreApplication::applicationDirPath() + "../../../";
|
||||
llmodelSearchPaths += ";" + QCoreApplication::applicationDirPath() + "../Frameworks/";
|
||||
const QString binDir = QCoreApplication::applicationDirPath() + "/../../../";
|
||||
if (directoryExists(binDir)
|
||||
llmodelSearchPaths += ";" + binDir;
|
||||
const QString frameworksDir = QCoreApplication::applicationDirPath() + "/../Frameworks/";
|
||||
if (directoryExists(frameworksDir)
|
||||
llmodelSearchPaths += ";" + frameworksDir;
|
||||
#endif
|
||||
LLModel::setImplementationsSearchPath(llmodelSearchPaths.toStdString());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user