mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
refactor: Simplify model settings loading in benchmark script
This commit is contained in:
parent
3f890551e7
commit
aa18b63c16
1 changed files with 0 additions and 16 deletions
|
@ -742,22 +742,6 @@ def run_test_real(
|
|||
chat_history_file=history_fname,
|
||||
)
|
||||
|
||||
resource_metadata = importlib_resources.files("aider.resources").joinpath("model-metadata.json")
|
||||
model_metadata_files_loaded = models.register_litellm_models([resource_metadata])
|
||||
dump(model_metadata_files_loaded)
|
||||
|
||||
if read_model_settings:
|
||||
try:
|
||||
files_loaded = models.register_models([read_model_settings])
|
||||
if verbose:
|
||||
if files_loaded:
|
||||
io.tool_output(f"Loaded model settings from: {files_loaded[0]}")
|
||||
else:
|
||||
io.tool_output(f"No model settings loaded from: {read_model_settings}")
|
||||
except Exception as e:
|
||||
io.tool_error(f"Error loading model settings: {e}")
|
||||
return 1
|
||||
|
||||
# weak_model_name = model_name
|
||||
weak_model_name = None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue