mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
Added chat history file to InputOutput constructor.
This commit is contained in:
parent
e44677327f
commit
129f70dba8
2 changed files with 4 additions and 3 deletions
|
@ -12,7 +12,7 @@ from rich.text import Text
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import random
|
import random
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
class FileContentCompleter(Completer):
|
class FileContentCompleter(Completer):
|
||||||
def __init__(self, fnames, commands):
|
def __init__(self, fnames, commands):
|
||||||
|
@ -52,10 +52,11 @@ class FileContentCompleter(Completer):
|
||||||
|
|
||||||
|
|
||||||
class InputOutput:
|
class InputOutput:
|
||||||
def __init__(self, pretty, yes, input_history_file):
|
def __init__(self, pretty, yes, input_history_file, chat_history_file):
|
||||||
self.pretty = pretty
|
self.pretty = pretty
|
||||||
self.yes = yes
|
self.yes = yes
|
||||||
self.input_history_file = input_history_file
|
self.input_history_file = input_history_file
|
||||||
|
self.chat_history_file = chat_history_file
|
||||||
|
|
||||||
if pretty:
|
if pretty:
|
||||||
self.console = Console()
|
self.console = Console()
|
||||||
|
|
|
@ -84,7 +84,7 @@ def main(args=None):
|
||||||
fnames = args.files
|
fnames = args.files
|
||||||
pretty = args.pretty
|
pretty = args.pretty
|
||||||
|
|
||||||
io = InputOutput(args.pretty, args.yes, args.input_history_file)
|
io = InputOutput(args.pretty, args.yes, args.input_history_file, args.chat_history_file)
|
||||||
|
|
||||||
coder = Coder(
|
coder = Coder(
|
||||||
args.model, fnames, pretty, args.show_diffs, args.auto_commits, io,
|
args.model, fnames, pretty, args.show_diffs, args.auto_commits, io,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue