mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
Only expand the repomap if we know it will fit into context window
This commit is contained in:
parent
449cbf507f
commit
1effd73e80
2 changed files with 12 additions and 3 deletions
|
@ -310,6 +310,7 @@ class Coder:
|
|||
io,
|
||||
self.gpt_prompts.repo_content_prefix,
|
||||
self.verbose,
|
||||
self.main_model.info.get("max_input_tokens"),
|
||||
)
|
||||
|
||||
if max_chat_history_tokens is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue