Compare commits
No commits in common. "3e5b88a7362dcd5b9c11b605518dd77487dc8650" and "7da687ab3f6aa923d52d3317bb1a4759aff536b6" have entirely different histories.
3e5b88a736
...
7da687ab3f
|
@ -158,19 +158,16 @@ AIDER_LINT = bash_cmd(
|
|||
)
|
||||
|
||||
|
||||
LLM_MESSAGE_FORMAT = """{issue}
|
||||
|
||||
Go ahead with the changes you deem appropriate without waiting for explicit approval.
|
||||
|
||||
Do not draft changes beforehand; produce changes only once prompted for a specific file.
|
||||
"""
|
||||
LLM_MESSAGE_FORMAT = (
|
||||
"""{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': 'diff-fenced',
|
||||
'ollama/hf.co/unsloth/Qwen3-30B-A3B-GGUF:Q4_K_M': 'whole',
|
||||
}
|
||||
|
||||
|
||||
|
@ -189,7 +186,6 @@ def create_aider_command(issue: str) -> list[str]:
|
|||
'--auto-test',
|
||||
'--no-auto-lint',
|
||||
'--yes',
|
||||
'--disable-playwright',
|
||||
'--timeout',
|
||||
str(10_000),
|
||||
]
|
||||
|
@ -364,9 +360,6 @@ def issue_solution_round(repository_path, issue_content):
|
|||
|
||||
return True
|
||||
|
||||
def remove_thinking_tokens(text: str) -> str:
|
||||
text = re.sub('^<think>.*?</think>', '', text, flags=re.MULTILINE)
|
||||
return text.strip()
|
||||
|
||||
def run_ollama(cwd: Path, texts: list[str]) -> str:
|
||||
cmd = ['ollama', 'run', EVALUATOR_MODEL.removeprefix('ollama/')]
|
||||
|
@ -380,7 +373,6 @@ def run_ollama(cwd: Path, texts: list[str]) -> str:
|
|||
text=True,
|
||||
)
|
||||
stdout, stderr = process.communicate('\n'.join(texts))
|
||||
stdout = remove_thinking_tokens(stdout)
|
||||
print(stdout)
|
||||
return stdout
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user