Messing around with models
This commit is contained in:
parent
ed5209f7dd
commit
b4cbeb4691
|
@ -60,20 +60,15 @@ The tool uses environment variables for sensitive information:
|
||||||
```
|
```
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import argparse
|
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
import time
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import requests
|
|
||||||
|
|
||||||
from . import secrets
|
from . import secrets
|
||||||
from ._version import __version__ # noqa: F401
|
from ._version import __version__ # noqa: F401
|
||||||
from .seen_issues_db import SeenIssuesDB
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -127,10 +122,13 @@ 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 = 'ollama_chat/gemma3:27b'
|
||||||
|
|
||||||
def create_aider_command(issue: str) -> list[str]:
|
def create_aider_command(issue: str) -> list[str]:
|
||||||
return [
|
return [
|
||||||
'aider',
|
'aider',
|
||||||
|
'--model', MODEL ,
|
||||||
'--chat-language',
|
'--chat-language',
|
||||||
'english',
|
'english',
|
||||||
'--test-cmd',
|
'--test-cmd',
|
||||||
|
@ -139,14 +137,14 @@ def create_aider_command(issue: str) -> list[str]:
|
||||||
AIDER_LINT,
|
AIDER_LINT,
|
||||||
'--auto-test',
|
'--auto-test',
|
||||||
'--no-auto-lint',
|
'--no-auto-lint',
|
||||||
'--api-key',
|
#'--api-key',
|
||||||
secrets.llm_api_key(),
|
#secrets.llm_api_key(),
|
||||||
'--read',
|
'--read',
|
||||||
'CONVENTIONS.md',
|
'CONVENTIONS.md',
|
||||||
'--message',
|
'--message',
|
||||||
LLM_MESSAGE_FORMAT.format(issue=issue),
|
LLM_MESSAGE_FORMAT.format(issue=issue),
|
||||||
'--yes-always',
|
'--yes-always',
|
||||||
'--architect',
|
#'--architect',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user