mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 03:35:00 +00:00
pass the input history as a prompt to whisper
This commit is contained in:
parent
9815d14368
commit
b6b271b70c
3 changed files with 30 additions and 5 deletions
|
@ -236,6 +236,13 @@ class InputOutput:
|
|||
return
|
||||
FileHistory(self.input_history_file).append_string(inp)
|
||||
|
||||
def get_input_history(self):
|
||||
if not self.input_history_file:
|
||||
return []
|
||||
|
||||
fh = FileHistory(self.input_history_file)
|
||||
return fh.load_history_strings()
|
||||
|
||||
def user_input(self, inp, log_only=True):
|
||||
if not log_only:
|
||||
style = dict(style=self.user_input_color) if self.user_input_color else dict()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue