mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
refactor: Split summarize method and add model metadata handling
This commit is contained in:
parent
73bc0f6258
commit
dff544cd5d
6 changed files with 38 additions and 3 deletions
|
@ -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 = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue