mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
fix: Remove unused map_multiplier_no_files
attribute from Coder
class
This commit is contained in:
parent
425dc0b99a
commit
fc055a17c1
3 changed files with 3 additions and 5 deletions
|
@ -131,7 +131,6 @@ class Coder:
|
|||
message_tokens_sent = 0
|
||||
message_tokens_received = 0
|
||||
add_cache_headers = False
|
||||
map_multiplier_no_files = 8
|
||||
|
||||
@classmethod
|
||||
def create(
|
||||
|
@ -295,7 +294,6 @@ class Coder:
|
|||
map_refresh="auto",
|
||||
cache_prompts=False,
|
||||
):
|
||||
self.map_multiplier_no_files = map_mul_no_files
|
||||
self.commit_before_message = []
|
||||
self.aider_commit_hashes = set()
|
||||
self.rejected_urls = set()
|
||||
|
@ -426,7 +424,7 @@ class Coder:
|
|||
self.gpt_prompts.repo_content_prefix,
|
||||
self.verbose,
|
||||
max_inp_tokens,
|
||||
map_mul_no_files=self.map_multiplier_no_files,
|
||||
map_mul_no_files=map_mul_no_files,
|
||||
refresh=map_refresh,
|
||||
)
|
||||
|
||||
|
|
|
@ -537,7 +537,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
summarizer=summarizer,
|
||||
map_refresh=args.map_refresh,
|
||||
cache_prompts=args.cache_prompts,
|
||||
map_multiplier_no_files=args.map_multiplier_no_files,
|
||||
map_mul_no_files=args.map_multiplier_no_files,
|
||||
)
|
||||
except ValueError as err:
|
||||
io.tool_error(str(err))
|
||||
|
|
|
@ -106,7 +106,7 @@ class RepoMap:
|
|||
padding = 4096
|
||||
if max_map_tokens and self.max_context_window:
|
||||
target = min(
|
||||
max_map_tokens * self.map_mul_no_files,
|
||||
int(max_map_tokens * self.map_mul_no_files),
|
||||
self.max_context_window - padding,
|
||||
)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue