Config edit formats
This commit is contained in:
parent
ef8903c3d7
commit
7da687ab3f
|
@ -159,12 +159,17 @@ AIDER_LINT = bash_cmd(
|
|||
|
||||
|
||||
LLM_MESSAGE_FORMAT = (
|
||||
"""{issue}\nDo not wait for explicit approval before working on code changes."""
|
||||
"""{issue}\nGo ahead with the changes you deem appropriate without waiting for explicit approval."""
|
||||
)
|
||||
|
||||
CODE_MODEL = None
|
||||
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]:
|
||||
l = [
|
||||
|
@ -185,9 +190,10 @@ def create_aider_command(issue: str) -> list[str]:
|
|||
str(10_000),
|
||||
]
|
||||
|
||||
if CODE_MODEL in {'ollama/qwen3:32b', 'ollama/hf.co/unsloth/Qwen3-30B-A3B-GGUF:Q4_K_M'}:
|
||||
if edit_format := MODEL_EDIT_MODES.get(CODE_MODEL):
|
||||
l.append('--edit-format')
|
||||
l.append('diff')
|
||||
l.append(edit_format)
|
||||
del edit_format
|
||||
|
||||
for key in secrets.llm_api_keys():
|
||||
l += ['--api-key', key]
|
||||
|
|
|
@ -42,7 +42,7 @@ def parse_args():
|
|||
parser.add_argument(
|
||||
'--interval',
|
||||
type=int,
|
||||
default=300,
|
||||
default=30,
|
||||
help='Interval in seconds between checks in daemon mode (default: 300)',
|
||||
)
|
||||
parser.add_argument(
|
||||
|
|
Loading…
Reference in New Issue
Block a user