Compare commits
No commits in common. "7da687ab3f6aa923d52d3317bb1a4759aff536b6" and "3b99ebdea9660215122cdd27f6af39b21bfb0d7a" have entirely different histories.
7da687ab3f
...
3b99ebdea9
|
@ -134,13 +134,9 @@ def bash_cmd(*commands: str) -> str:
|
||||||
|
|
||||||
|
|
||||||
AIDER_TEST = bash_cmd(
|
AIDER_TEST = bash_cmd(
|
||||||
'echo "Setting up virtual environment"'
|
|
||||||
'virtualenv venv',
|
'virtualenv venv',
|
||||||
'echo "Activating virtual environment"'
|
|
||||||
'source venv/bin/activate',
|
'source venv/bin/activate',
|
||||||
'echo "Installing package"'
|
|
||||||
'pip install -e .',
|
'pip install -e .',
|
||||||
'echo "Testing package"'
|
|
||||||
'pytest test',
|
'pytest test',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -159,17 +155,12 @@ AIDER_LINT = bash_cmd(
|
||||||
|
|
||||||
|
|
||||||
LLM_MESSAGE_FORMAT = (
|
LLM_MESSAGE_FORMAT = (
|
||||||
"""{issue}\nGo ahead with the changes you deem appropriate without waiting for explicit approval."""
|
"""{issue}\nDo not wait for explicit approval before working on code changes."""
|
||||||
)
|
)
|
||||||
|
|
||||||
CODE_MODEL = None
|
CODE_MODEL = None
|
||||||
EVALUATOR_MODEL = 'ollama/gemma3:27b'
|
EVALUATOR_MODEL = 'ollama/gemma3:27b'
|
||||||
|
|
||||||
MODEL_EDIT_MODES = {
|
|
||||||
'ollama/qwen3:32b': 'diff',
|
|
||||||
'ollama/hf.co/unsloth/Qwen3-30B-A3B-GGUF:Q4_K_M': 'whole',
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def create_aider_command(issue: str) -> list[str]:
|
def create_aider_command(issue: str) -> list[str]:
|
||||||
l = [
|
l = [
|
||||||
|
@ -190,10 +181,9 @@ def create_aider_command(issue: str) -> list[str]:
|
||||||
str(10_000),
|
str(10_000),
|
||||||
]
|
]
|
||||||
|
|
||||||
if edit_format := MODEL_EDIT_MODES.get(CODE_MODEL):
|
if CODE_MODEL in {'ollama/qwen3:32b'}:
|
||||||
l.append('--edit-format')
|
l.append('--edit-format')
|
||||||
l.append(edit_format)
|
l.append('diff')
|
||||||
del edit_format
|
|
||||||
|
|
||||||
for key in secrets.llm_api_keys():
|
for key in secrets.llm_api_keys():
|
||||||
l += ['--api-key', key]
|
l += ['--api-key', key]
|
||||||
|
|
|
@ -42,7 +42,7 @@ def parse_args():
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--interval',
|
'--interval',
|
||||||
type=int,
|
type=int,
|
||||||
default=30,
|
default=300,
|
||||||
help='Interval in seconds between checks in daemon mode (default: 300)',
|
help='Interval in seconds between checks in daemon mode (default: 300)',
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user