Skip to content

Commit

Permalink
feat: support platform linux/amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
elifarley committed Nov 16, 2024
1 parent 87626ef commit 8cb0484
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions aider/coders/base_coder.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import traceback
from collections import defaultdict
from datetime import datetime
from importlib.resources import files
from json.decoder import JSONDecodeError
from pathlib import Path
from typing import List
Expand All @@ -35,6 +36,7 @@

from ..dump import dump # noqa: F401
from .chat_chunks import ChatChunks
from .template_processor import TemplateProcessor


class MissingAPIKeyError(ValueError):
Expand Down Expand Up @@ -446,6 +448,8 @@ def __init__(
self.io.tool_output("JSON Schema:")
self.io.tool_output(json.dumps(self.functions, indent=4))

self.template_processor = TemplateProcessor(files('aider.resources.templates'), self.root)

def setup_lint_cmds(self, lint_cmds):
if not lint_cmds:
return
Expand Down Expand Up @@ -766,6 +770,7 @@ def preproc_user_input(self, inp):
if self.commands.is_command(inp):
return self.commands.run(inp)

inp = self.template_processor.process(inp)
self.check_for_file_mentions(inp)
self.check_for_urls(inp)

Expand Down
7 changes: 4 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ backoff==2.2.1
# posthog
beautifulsoup4==4.12.3
# via -r requirements/requirements.in
cedarscript-ast-parser==0.5.2
cedarscript-ast-parser==0.5.3
# via cedarscript-editor
cedarscript-editor==1.2.0
cedarscript-editor==1.2.1
# via -r requirements/requirements.in
cedarscript-grammar==0.5.0
cedarscript-grammar==0.5.1
# via cedarscript-ast-parser
cedarscript-integration-aider==1.3.3
# via -r requirements/requirements.in
Expand Down Expand Up @@ -236,6 +236,7 @@ tqdm==4.66.6
tree-sitter==0.21.3
# via
# -r requirements/requirements.in
# cedarscript-editor
# cedarscript-grammar
# tree-sitter-languages
tree-sitter-languages==1.10.2
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ tree-sitter==0.21.3

orgecc-pylib>=0.0.9
cedarscript-integration-aider>=1.3.3
cedarscript-editor>=1.2.0
cedarscript-editor>=1.2.1
# 1.1.2 + 1.1.6
# pass_rate_1: 74.2
# pass_rate_2: 75.3
Expand Down

0 comments on commit 8cb0484

Please sign in to comment.