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