mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 19:55:00 +00:00
Merge remote-tracking branch 'refs/remotes/origin/main'
This commit is contained in:
commit
6cc0f96e33
2 changed files with 34 additions and 5 deletions
14
aider/io.py
14
aider/io.py
|
@ -15,9 +15,10 @@ from prompt_toolkit.styles import Style
|
||||||
from pygments.lexers import MarkdownLexer, guess_lexer_for_filename
|
from pygments.lexers import MarkdownLexer, guess_lexer_for_filename
|
||||||
from pygments.token import Token
|
from pygments.token import Token
|
||||||
from rich.console import Console
|
from rich.console import Console
|
||||||
|
from rich.markdown import Markdown
|
||||||
from rich.style import Style as RichStyle
|
from rich.style import Style as RichStyle
|
||||||
from rich.text import Text
|
from rich.text import Text
|
||||||
from rich.markdown import Markdown
|
|
||||||
from aider.mdstream import MarkdownStream
|
from aider.mdstream import MarkdownStream
|
||||||
|
|
||||||
from .dump import dump # noqa: F401
|
from .dump import dump # noqa: F401
|
||||||
|
@ -339,6 +340,11 @@ class InputOutput:
|
||||||
|
|
||||||
kb = KeyBindings()
|
kb = KeyBindings()
|
||||||
|
|
||||||
|
@kb.add("c-space")
|
||||||
|
def _(event):
|
||||||
|
"Ignore Ctrl when pressing space bar"
|
||||||
|
event.current_buffer.insert_text(" ")
|
||||||
|
|
||||||
@kb.add("escape", "c-m", eager=True)
|
@kb.add("escape", "c-m", eager=True)
|
||||||
def _(event):
|
def _(event):
|
||||||
event.current_buffer.insert_text("\n")
|
event.current_buffer.insert_text("\n")
|
||||||
|
@ -589,7 +595,7 @@ class InputOutput:
|
||||||
def assistant_output(self, message, stream=False):
|
def assistant_output(self, message, stream=False):
|
||||||
mdStream = None
|
mdStream = None
|
||||||
show_resp = message
|
show_resp = message
|
||||||
|
|
||||||
if self.pretty:
|
if self.pretty:
|
||||||
if stream:
|
if stream:
|
||||||
mdargs = dict(style=self.assistant_output_color, code_theme=self.code_theme)
|
mdargs = dict(style=self.assistant_output_color, code_theme=self.code_theme)
|
||||||
|
@ -603,10 +609,10 @@ class InputOutput:
|
||||||
|
|
||||||
self.console.print(show_resp)
|
self.console.print(show_resp)
|
||||||
return mdStream
|
return mdStream
|
||||||
|
|
||||||
def print(self, message=""):
|
def print(self, message=""):
|
||||||
print(message)
|
print(message)
|
||||||
|
|
||||||
def append_chat_history(self, text, linebreak=False, blockquote=False, strip=True):
|
def append_chat_history(self, text, linebreak=False, blockquote=False, strip=True):
|
||||||
if blockquote:
|
if blockquote:
|
||||||
if strip:
|
if strip:
|
||||||
|
|
|
@ -1200,4 +1200,27 @@
|
||||||
date: 2024-09-20
|
date: 2024-09-20
|
||||||
versions: 0.56.1.dev
|
versions: 0.56.1.dev
|
||||||
seconds_per_case: 39.8
|
seconds_per_case: 39.8
|
||||||
total_cost: 0.0000
|
total_cost: 0.0000
|
||||||
|
|
||||||
|
- dirname: 2024-09-21-11-56-43--Codestral-22B-v0.1-Q4_K_M.gguf_whole
|
||||||
|
test_cases: 133
|
||||||
|
model: Codestral-22B-v0.1-Q4_K_M
|
||||||
|
edit_format: whole
|
||||||
|
commit_hash: 2753ac6-dirty
|
||||||
|
pass_rate_1: 36.1
|
||||||
|
pass_rate_2: 48.1
|
||||||
|
percent_cases_well_formed: 100.0
|
||||||
|
error_outputs: 0
|
||||||
|
num_malformed_responses: 0
|
||||||
|
num_with_malformed_responses: 0
|
||||||
|
user_asks: 8
|
||||||
|
lazy_comments: 6
|
||||||
|
syntax_errors: 0
|
||||||
|
indentation_errors: 0
|
||||||
|
exhausted_context_windows: 0
|
||||||
|
test_timeouts: 4
|
||||||
|
command: aider --model Codestral-22B-v0.1-Q4_K_M
|
||||||
|
date: 2024-09-21
|
||||||
|
versions: 0.56.1.dev
|
||||||
|
seconds_per_case: 656.4
|
||||||
|
total_cost: 0.9108
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue