Compare commits
2 Commits
a8ce6102d2
...
f1f1e42e7e
Author | SHA1 | Date | |
---|---|---|---|
f1f1e42e7e | |||
2904c5429b |
|
@ -387,9 +387,6 @@ def run_ollama_and_get_yes_or_no(cwd, initial_texts: list[str]) -> bool:
|
|||
|
||||
|
||||
def verify_solution(repository_path: Path, issue_content: str) -> bool:
|
||||
if not EVALUATOR_MODEL:
|
||||
return True
|
||||
|
||||
summary = run_ollama(
|
||||
repository_path,
|
||||
[
|
||||
|
@ -475,6 +472,10 @@ def solve_issue_in_repository(
|
|||
if not resolution.success:
|
||||
return resolution
|
||||
|
||||
if not EVALUATOR_MODEL:
|
||||
logger.info('No evaluator model specified, skipping evaluation')
|
||||
return resolution
|
||||
|
||||
# Verify whether this is a satisfactory solution
|
||||
if verify_solution(repository_path, issue_content):
|
||||
return resolution
|
||||
|
|
|
@ -45,16 +45,6 @@ def parse_args():
|
|||
default=300,
|
||||
help='Interval in seconds between checks in daemon mode (default: 300)',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--aider-model',
|
||||
help='Model to use for generating code (overrides default)',
|
||||
default=None,
|
||||
)
|
||||
parser.add_argument(
|
||||
'--evaluator-model',
|
||||
help='Model to use for evaluating code (overrides default)',
|
||||
default=None,
|
||||
)
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
|
@ -62,14 +52,6 @@ def main():
|
|||
logging.basicConfig(level='INFO')
|
||||
args = parse_args()
|
||||
|
||||
# Override default models if provided
|
||||
import aider_gitea as core
|
||||
|
||||
if args.aider_model:
|
||||
core.CODE_MODEL = args.aider_model
|
||||
if args.evaluator_model:
|
||||
core.EVALUATOR_MODEL = args.evaluator_model
|
||||
|
||||
seen_issues_db = SeenIssuesDB()
|
||||
client = GiteaClient(args.gitea_url, secrets.gitea_token())
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user