Switch to new models2.json for new gguf release and bump our version to

2.5.0.
This commit is contained in:
Adam Treat
2023-10-05 09:56:40 -04:00
parent 088afada49
commit ea66669cef
13 changed files with 167 additions and 22 deletions

View File

@@ -108,12 +108,12 @@ class GPT4All:
@staticmethod
def list_models() -> List[ConfigType]:
"""
Fetch model list from https://gpt4all.io/models/models.json.
Fetch model list from https://gpt4all.io/models/models2.json.
Returns:
Model list in JSON format.
"""
return requests.get("https://gpt4all.io/models/models.json").json()
return requests.get("https://gpt4all.io/models/models2.json").json()
@staticmethod
def retrieve_model(