mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 06:44:59 +00:00
cleanup
This commit is contained in:
parent
547ae142ba
commit
f0f0c330d7
2 changed files with 4 additions and 4 deletions
|
@ -5,7 +5,7 @@ import git
|
||||||
import pathspec
|
import pathspec
|
||||||
|
|
||||||
from aider import prompts, utils
|
from aider import prompts, utils
|
||||||
from aider.models import Model
|
from aider.models import DEFAULT_WEAK_MODEL_NAME, Model
|
||||||
from aider.sendchat import simple_send_with_retries
|
from aider.sendchat import simple_send_with_retries
|
||||||
|
|
||||||
from .dump import dump # noqa: F401
|
from .dump import dump # noqa: F401
|
||||||
|
@ -22,7 +22,7 @@ class GitRepo:
|
||||||
if models:
|
if models:
|
||||||
self.models = models
|
self.models = models
|
||||||
else:
|
else:
|
||||||
self.models = [Model("gpt-3.5-turbo")]
|
self.models = [Model(DEFAULT_WEAK_MODEL_NAME)]
|
||||||
|
|
||||||
if git_dname:
|
if git_dname:
|
||||||
check_fnames = [git_dname]
|
check_fnames = [git_dname]
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import colorsys
|
import colorsys
|
||||||
import importlib.resources as pkg_resources
|
|
||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
import sys
|
import sys
|
||||||
import warnings
|
import warnings
|
||||||
from collections import Counter, defaultdict, namedtuple
|
from collections import Counter, defaultdict, namedtuple
|
||||||
|
from importlib import resources
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import networkx as nx
|
import networkx as nx
|
||||||
|
@ -140,7 +140,7 @@ class RepoMap:
|
||||||
|
|
||||||
# Load the tags queries
|
# Load the tags queries
|
||||||
try:
|
try:
|
||||||
scm_fname = pkg_resources.files(__package__).joinpath(
|
scm_fname = resources.files(__package__).joinpath(
|
||||||
"queries", f"tree-sitter-{lang}-tags.scm"
|
"queries", f"tree-sitter-{lang}-tags.scm"
|
||||||
)
|
)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue