(
self,
main_model,
io,
repo=None,
fnames=None,
add_gitignore_files=False,
read_only_fnames=None,
show_diffs=False,
auto_commits=True,
dirty_commits=True,
dry_run=False,
map_tokens=1024,
verbose=False,
stream=True,
use_git=True,
cur_messages=None,
done_messages=None,
restore_chat_history=False,
auto_lint=True,
auto_test=False,
lint_cmds=None,
test_cmd=None,
aider_commit_hashes=None,
map_mul_no_files=8,
commands=None,
summarizer=None,
total_cost=0.0,
analytics=None,
map_refresh="auto",
cache_prompts=False,
num_cache_warming_pings=0,
suggest_shell_commands=True,
chat_language=None,
commit_language=None,
detect_urls=True,
ignore_mentions=None,
total_tokens_sent=0,
total_tokens_received=0,
file_watcher=None,
auto_copy_context=False,
auto_accept_architect=True,
)
| 297 | ok_to_warm_cache = False |
| 298 | |
| 299 | def __init__( |
| 300 | self, |
| 301 | main_model, |
| 302 | io, |
| 303 | repo=None, |
| 304 | fnames=None, |
| 305 | add_gitignore_files=False, |
| 306 | read_only_fnames=None, |
| 307 | show_diffs=False, |
| 308 | auto_commits=True, |
| 309 | dirty_commits=True, |
| 310 | dry_run=False, |
| 311 | map_tokens=1024, |
| 312 | verbose=False, |
| 313 | stream=True, |
| 314 | use_git=True, |
| 315 | cur_messages=None, |
| 316 | done_messages=None, |
| 317 | restore_chat_history=False, |
| 318 | auto_lint=True, |
| 319 | auto_test=False, |
| 320 | lint_cmds=None, |
| 321 | test_cmd=None, |
| 322 | aider_commit_hashes=None, |
| 323 | map_mul_no_files=8, |
| 324 | commands=None, |
| 325 | summarizer=None, |
| 326 | total_cost=0.0, |
| 327 | analytics=None, |
| 328 | map_refresh="auto", |
| 329 | cache_prompts=False, |
| 330 | num_cache_warming_pings=0, |
| 331 | suggest_shell_commands=True, |
| 332 | chat_language=None, |
| 333 | commit_language=None, |
| 334 | detect_urls=True, |
| 335 | ignore_mentions=None, |
| 336 | total_tokens_sent=0, |
| 337 | total_tokens_received=0, |
| 338 | file_watcher=None, |
| 339 | auto_copy_context=False, |
| 340 | auto_accept_architect=True, |
| 341 | ): |
| 342 | # Fill in a dummy Analytics if needed, but it is never .enable()'d |
| 343 | self.analytics = analytics if analytics is not None else Analytics() |
| 344 | |
| 345 | self.event = self.analytics.event |
| 346 | self.chat_language = chat_language |
| 347 | self.commit_language = commit_language |
| 348 | self.commit_before_message = [] |
| 349 | self.aider_commit_hashes = set() |
| 350 | self.rejected_urls = set() |
| 351 | self.abs_root_path_cache = {} |
| 352 | |
| 353 | self.auto_copy_context = auto_copy_context |
| 354 | self.auto_accept_architect = auto_accept_architect |
| 355 | |
| 356 | self.ignore_mentions = ignore_mentions |
no test coverage detected