refactor: Split summarize method and add model metadata handling

This commit is contained in:
Paul Gauthier 2025-01-20 09:38:45 -08:00 committed by Paul Gauthier (aider)
parent 73bc0f6258
commit dff544cd5d
6 changed files with 38 additions and 3 deletions

View file

@ -16,6 +16,7 @@ from types import SimpleNamespace
from typing import List, Optional
import git
import importlib_resources
import lox
import pandas as pd
import prompts
@ -737,6 +738,10 @@ 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)
# weak_model_name = model_name
weak_model_name = None
@ -747,6 +752,8 @@ def run_test_real(
editor_edit_format=editor_edit_format,
)
dump(main_model.max_chat_history_tokens)
if num_ctx:
if not main_model.extra_params:
main_model.extra_params = {}