返回提交历史
Modified
g4f/local/_engine.py
+2
-2
XFEstudio/gpt4free
~ pip fix
model path fix
cc83c6af
代码差异
1 个文件
+2
-2
@@ -10,7 +10,7 @@ class LocalProvider:
10
10
raise ValueError(f"Model '{model}' not found / not yet implemented")
11
11
12
12
model = models[model]
13
model_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), '../models/')
13
model_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'models/')
14
14
full_model_path = os.path.join(model_dir, model['path'])
15
15
16
16
if not os.path.isfile(full_model_path):
@@ -23,7 +23,7 @@ class LocalProvider:
23
23
raise ValueError(f"Model '{model['path']}' not found.")
24
24
25
25
model = GPT4All(model_name=model['path'],
26
n_threads=8,
26
#n_threads=8,
27
27
verbose=False,
28
28
allow_download=False,
29
29
model_path=model_dir)