mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-24 06:27:22 +00:00
Allow user to specify custom search path via $GPT4ALL_IMPLEMENTATIONS_PATH (#789)
This commit is contained in:
parent
ab56119470
commit
c4f9535fd0
@ -6,6 +6,7 @@
|
||||
#include <fstream>
|
||||
#include <filesystem>
|
||||
#include <cassert>
|
||||
#include <cstdlib>
|
||||
|
||||
static bool requires_avxonly() {
|
||||
#ifdef __x86_64__
|
||||
@ -73,7 +74,8 @@ const std::vector<LLModel::Implementation> &LLModel::implementationList() {
|
||||
}
|
||||
};
|
||||
|
||||
search_in_directory(".");
|
||||
const char *custom_impl_lookup_path = getenv("GPT4ALL_IMPLEMENTATIONS_PATH");
|
||||
search_in_directory(custom_impl_lookup_path?custom_impl_lookup_path:".");
|
||||
#if defined(__APPLE__)
|
||||
search_in_directory("../../../");
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user