From b4cbeb46916b8137a60c8e69daac19a9937dfffc Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Sun, 13 Apr 2025 23:00:02 +0200 Subject: [PATCH] Messing around with models --- aider_gitea/__init__.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/aider_gitea/__init__.py b/aider_gitea/__init__.py index 49a9b61..0fb58f7 100644 --- a/aider_gitea/__init__.py +++ b/aider_gitea/__init__.py @@ -60,20 +60,15 @@ The tool uses environment variables for sensitive information: ``` """ -import argparse import logging import re import subprocess import sys import tempfile -import time from pathlib import Path -import requests - from . import secrets from ._version import __version__ # noqa: F401 -from .seen_issues_db import SeenIssuesDB logger = logging.getLogger(__name__) @@ -127,10 +122,13 @@ For code tasks: 3. Then, solve the issue by writing the required code. """ +#MODEL = 'ollama/gemma3:27b' +MODEL = 'ollama_chat/gemma3:27b' def create_aider_command(issue: str) -> list[str]: return [ 'aider', + '--model', MODEL , '--chat-language', 'english', '--test-cmd', @@ -139,14 +137,14 @@ def create_aider_command(issue: str) -> list[str]: AIDER_LINT, '--auto-test', '--no-auto-lint', - '--api-key', - secrets.llm_api_key(), + #'--api-key', + #secrets.llm_api_key(), '--read', 'CONVENTIONS.md', '--message', LLM_MESSAGE_FORMAT.format(issue=issue), '--yes-always', - '--architect', + #'--architect', ]