update default model URLs (#1538)

This commit is contained in:
cebtenzzre
2023-10-19 15:25:37 -04:00
committed by GitHub
parent 4338e72a51
commit 245c5ce5ea
8 changed files with 10 additions and 10 deletions

View File

@@ -705,7 +705,7 @@ Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Glob
##### url
Remote download url. Defaults to `https://gpt4all.io/models/<modelName>`
Remote download url. Defaults to `https://gpt4all.io/models/gguf/<modelName>`
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)

View File

@@ -213,7 +213,7 @@ class GPT4All:
def get_download_url(model_filename):
if url:
return url
return f"https://gpt4all.io/models/{model_filename}"
return f"https://gpt4all.io/models/gguf/{model_filename}"
# Download model
download_path = os.path.join(model_path, model_filename).replace("\\", "\\\\")