Improved create_aider_command
This commit is contained in:
parent
0109a40f8a
commit
0c4fae510c
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user