mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
feat: use json5 for loading litellm models
This commit is contained in:
parent
99a82983b8
commit
59b6a64687
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue