mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
fix: Use default max_chat_history_tokens if not provided
This commit is contained in:
parent
9bf518fff7
commit
60ec3c9228
1 changed files with 1 additions and 1 deletions
|
@ -480,7 +480,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
|
||||
summarizer = ChatSummary(
|
||||
[main_model, main_model.weak_model],
|
||||
args.max_chat_history_tokens,
|
||||
args.max_chat_history_tokens or main_model.max_chat_history_tokens,
|
||||
)
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue