mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
Fix compile on mac.
This commit is contained in:
parent
25eec33bda
commit
3a9cc329b1
@ -28,10 +28,10 @@ LLM::LLM()
|
||||
QString llmodelSearchPaths = QCoreApplication::applicationDirPath();
|
||||
#if defined(Q_OS_MAC)
|
||||
const QString binDir = QCoreApplication::applicationDirPath() + "/../../../";
|
||||
if (directoryExists(binDir)
|
||||
if (directoryExists(binDir))
|
||||
llmodelSearchPaths += ";" + binDir;
|
||||
const QString frameworksDir = QCoreApplication::applicationDirPath() + "/../Frameworks/";
|
||||
if (directoryExists(frameworksDir)
|
||||
if (directoryExists(frameworksDir))
|
||||
llmodelSearchPaths += ";" + frameworksDir;
|
||||
#endif
|
||||
LLModel::setImplementationsSearchPath(llmodelSearchPaths.toStdString());
|
||||
|
Loading…
Reference in New Issue
Block a user