Improved create_aider_command
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 23s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 22s

This commit is contained in:
Jon Michael Aanes 2025-04-14 23:46:24 +02:00
parent 0109a40f8a
commit 0c4fae510c

View File

@ -136,20 +136,15 @@ For code tasks:
3. Then, solve the issue by writing the required code.
"""
# MODEL = 'ollama/gemma3:27b'
# MODEL = 'ollama_chat/gemma3:27b'
MODEL = None
def create_aider_command(issue: str) -> list[str]:
return [
l = [
'aider',
'--chat-language',
'english',
'--cache-prompts',
'--no-stream',
'--no-analytics',
#'--model',
# MODEL,
'--test-cmd',
AIDER_TEST,
'--lint-cmd',
@ -163,9 +158,20 @@ def create_aider_command(issue: str) -> list[str]:
'--message',
LLM_MESSAGE_FORMAT.format(issue=issue),
'--yes-always',
#'--architect',
]
if False:
l.append('--cache-prompts')
if False:
l.append('--architect')
if MODEL:
l.append('--model')
l.append(MODEL)
return l
def push_changes(
cwd: Path,