mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-22 21:48:23 +00:00
rm redundant json
This commit is contained in:
parent
810a3b12cc
commit
adc599b0a6
@ -1,7 +1,6 @@
|
|||||||
"""
|
"""
|
||||||
Python only API for running all GPT4All models.
|
Python only API for running all GPT4All models.
|
||||||
"""
|
"""
|
||||||
import json
|
|
||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import time
|
import time
|
||||||
@ -56,9 +55,7 @@ class GPT4All():
|
|||||||
Returns:
|
Returns:
|
||||||
Model list in JSON format.
|
Model list in JSON format.
|
||||||
"""
|
"""
|
||||||
response = requests.get("https://gpt4all.io/models/models.json")
|
return requests.get("https://gpt4all.io/models/models.json").json()
|
||||||
model_json = json.loads(response.content)
|
|
||||||
return model_json
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def retrieve_model(model_name: str, model_path: str = None, allow_download: bool = True) -> str:
|
def retrieve_model(model_name: str, model_path: str = None, allow_download: bool = True) -> str:
|
||||||
|
Loading…
Reference in New Issue
Block a user