Skip to content

Commit c6284dc

Browse files
committed
#173: json5 is unnecessary to load model metadata, improve start up time
1 parent a17a830 commit c6284dc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

aider/models.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from pathlib import Path
1313
from typing import Optional, Union
1414

15-
import json5
1615
import yaml
1716
from PIL import Image
1817

@@ -1095,7 +1094,7 @@ def register_litellm_models(model_fnames):
10951094
data = Path(model_fname).read_text()
10961095
if not data.strip():
10971096
continue
1098-
model_def = json5.loads(data)
1097+
model_def = json.loads(data)
10991098
if not model_def:
11001099
continue
11011100

0 commit comments

Comments
 (0)