mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
copy
This commit is contained in:
parent
d8adc75d7b
commit
57809fbbbb
3 changed files with 4 additions and 5 deletions
|
@ -22,7 +22,7 @@ def default_env_file(git_root):
|
||||||
|
|
||||||
def get_parser(default_config_files, git_root):
|
def get_parser(default_config_files, git_root):
|
||||||
parser = configargparse.ArgumentParser(
|
parser = configargparse.ArgumentParser(
|
||||||
description="aider is GPT powered coding in your terminal",
|
description="aider is AI pair programming in your terminal",
|
||||||
add_config_file_help=True,
|
add_config_file_help=True,
|
||||||
default_config_files=default_config_files,
|
default_config_files=default_config_files,
|
||||||
auto_env_var_prefix="AIDER_",
|
auto_env_var_prefix="AIDER_",
|
||||||
|
|
|
@ -207,7 +207,7 @@ class Coder:
|
||||||
if map_tokens > max_map_tokens:
|
if map_tokens > max_map_tokens:
|
||||||
lines.append(
|
lines.append(
|
||||||
f"Warning: map-tokens > {max_map_tokens} is not recommended as too much"
|
f"Warning: map-tokens > {max_map_tokens} is not recommended as too much"
|
||||||
" irrelevant code can confuse GPT."
|
" irrelevant code can confuse LLMs."
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
lines.append("Repo-map: disabled because map_tokens == 0")
|
lines.append("Repo-map: disabled because map_tokens == 0")
|
||||||
|
|
|
@ -554,7 +554,7 @@ class Commands:
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def cmd_add(self, args):
|
def cmd_add(self, args):
|
||||||
"Add files to the chat so GPT can edit them or review them in detail"
|
"Add files to the chat so aider can edit them or review them in detail"
|
||||||
|
|
||||||
added_fnames = []
|
added_fnames = []
|
||||||
|
|
||||||
|
@ -628,8 +628,7 @@ class Commands:
|
||||||
if is_image_file(matched_file) and not self.coder.main_model.accepts_images:
|
if is_image_file(matched_file) and not self.coder.main_model.accepts_images:
|
||||||
self.io.tool_error(
|
self.io.tool_error(
|
||||||
f"Cannot add image file {matched_file} as the"
|
f"Cannot add image file {matched_file} as the"
|
||||||
f" {self.coder.main_model.name} does not support image.\nYou can run `aider"
|
f" {self.coder.main_model.name} does not support images."
|
||||||
" --4-turbo-vision` to use GPT-4 Turbo with Vision."
|
|
||||||
)
|
)
|
||||||
continue
|
continue
|
||||||
content = self.io.read_text(abs_file_path)
|
content = self.io.read_text(abs_file_path)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue