From 59b6a6468788367b705661374839d8b8be71c3e5 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 28 Aug 2024 12:03:26 -0700 Subject: [PATCH] feat: use json5 for loading litellm models --- aider/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/models.py b/aider/models.py index 40f71854f..b8c26d1b9 100644 --- a/aider/models.py +++ b/aider/models.py @@ -1,5 +1,5 @@ import difflib -import json +import json5 import math import os import platform @@ -699,7 +699,7 @@ def register_litellm_models(model_fnames): try: with open(model_fname, "r") as model_def_file: - model_def = json.load(model_def_file) + model_def = json5.load(model_def_file) litellm._load_litellm() litellm.register_model(model_def) except Exception as e: