mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-07 03:20:26 +00:00
Fix symbol resolution on windows.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#include <cstdlib>
|
||||
#include <sstream>
|
||||
|
||||
std::string LLModel::m_implementations_search_path = ".";
|
||||
std::string s_implementations_search_path = ".";
|
||||
|
||||
static bool has_at_least_minimal_hardware() {
|
||||
#ifdef __x86_64__
|
||||
@@ -98,7 +98,7 @@ const std::vector<LLModel::Implementation> &LLModel::implementationList() {
|
||||
}
|
||||
};
|
||||
|
||||
search_in_directory(m_implementations_search_path);
|
||||
search_in_directory(s_implementations_search_path);
|
||||
|
||||
return fres;
|
||||
}());
|
||||
@@ -139,3 +139,11 @@ LLModel *LLModel::construct(const std::string &modelPath, std::string buildVaria
|
||||
// Construct and return llmodel implementation
|
||||
return impl->construct();
|
||||
}
|
||||
|
||||
void LLModel::setImplementationsSearchPath(const std::string& path) {
|
||||
s_implementations_search_path = path;
|
||||
}
|
||||
|
||||
const std::string& LLModel::implementationsSearchPath() {
|
||||
return s_implementations_search_path;
|
||||
}
|
||||
|
Reference in New Issue
Block a user