mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
Merge branch 'main' into slim-playwright
This commit is contained in:
commit
a3a4113331
27 changed files with 470 additions and 310 deletions
|
@ -91,7 +91,7 @@ class YamlHelpFormatter(argparse.HelpFormatter):
|
||||||
def _format_text(self, text):
|
def _format_text(self, text):
|
||||||
return """
|
return """
|
||||||
##########################################################
|
##########################################################
|
||||||
# Sample .aider.conf.yaml
|
# Sample .aider.conf.yml
|
||||||
# This file lists *all* the valid configuration entries.
|
# This file lists *all* the valid configuration entries.
|
||||||
# Place in your home dir, or at the root of your git repo.
|
# Place in your home dir, or at the root of your git repo.
|
||||||
##########################################################
|
##########################################################
|
||||||
|
|
|
@ -7,7 +7,7 @@ from pathlib import Path
|
||||||
import git
|
import git
|
||||||
|
|
||||||
from aider import models, prompts, voice
|
from aider import models, prompts, voice
|
||||||
from aider.help import Help, PipInstallHF
|
from aider.help import Help, install_help_extra
|
||||||
from aider.llm import litellm
|
from aider.llm import litellm
|
||||||
from aider.scrape import Scraper
|
from aider.scrape import Scraper
|
||||||
from aider.utils import is_image_file
|
from aider.utils import is_image_file
|
||||||
|
@ -662,19 +662,12 @@ class Commands:
|
||||||
from aider.coders import Coder
|
from aider.coders import Coder
|
||||||
|
|
||||||
if not self.help:
|
if not self.help:
|
||||||
try:
|
res = install_help_extra(self.io)
|
||||||
self.help = Help()
|
if not res:
|
||||||
except PipInstallHF as err:
|
self.io.tool_error("Unable to initialize interactive help.")
|
||||||
self.io.tool_error(str(err))
|
return
|
||||||
if self.io.confirm_ask("Run pip install?", default="y"):
|
|
||||||
try:
|
|
||||||
self.help = Help(pip_install=True)
|
|
||||||
except PipInstallHF:
|
|
||||||
pass
|
|
||||||
|
|
||||||
if not self.help:
|
self.help = Help()
|
||||||
self.io.tool_error("Unable to initialize interactive help.")
|
|
||||||
return
|
|
||||||
|
|
||||||
coder = Coder.create(
|
coder = Coder.create(
|
||||||
main_model=self.coder.main_model,
|
main_model=self.coder.main_model,
|
||||||
|
|
|
@ -13,6 +13,21 @@ from aider.help_pats import exclude_website_pats
|
||||||
warnings.simplefilter("ignore", category=FutureWarning)
|
warnings.simplefilter("ignore", category=FutureWarning)
|
||||||
|
|
||||||
|
|
||||||
|
def install_help_extra(io):
|
||||||
|
pip_install_cmd = [
|
||||||
|
"aider-chat[hf-embed]",
|
||||||
|
"--extra-index-url",
|
||||||
|
"https://download.pytorch.org/whl/cpu",
|
||||||
|
]
|
||||||
|
res = utils.check_pip_install_extra(
|
||||||
|
io,
|
||||||
|
"llama_index.embeddings.huggingface",
|
||||||
|
"To use interactive /help you need to install HuggingFace embeddings",
|
||||||
|
pip_install_cmd,
|
||||||
|
)
|
||||||
|
return res
|
||||||
|
|
||||||
|
|
||||||
def get_package_files():
|
def get_package_files():
|
||||||
for path in importlib_resources.files("aider.website").iterdir():
|
for path in importlib_resources.files("aider.website").iterdir():
|
||||||
if path.is_file():
|
if path.is_file():
|
||||||
|
@ -87,35 +102,10 @@ def get_index():
|
||||||
return index
|
return index
|
||||||
|
|
||||||
|
|
||||||
class PipInstallHF(Exception):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
pip_install_cmd = [
|
|
||||||
"aider-chat[hf-embed]",
|
|
||||||
"--extra-index-url",
|
|
||||||
"https://download.pytorch.org/whl/cpu",
|
|
||||||
]
|
|
||||||
|
|
||||||
pip_install_error = """
|
|
||||||
To use interactive /help you need to install HuggingFace embeddings:
|
|
||||||
|
|
||||||
{cmd}
|
|
||||||
|
|
||||||
""" # noqa: E231
|
|
||||||
|
|
||||||
|
|
||||||
class Help:
|
class Help:
|
||||||
def __init__(self, pip_install=False):
|
def __init__(self):
|
||||||
cmd = utils.get_pip_install(pip_install_cmd)
|
from llama_index.core import Settings
|
||||||
if pip_install:
|
from llama_index.embeddings.huggingface import HuggingFaceEmbedding
|
||||||
utils.run_install(cmd)
|
|
||||||
|
|
||||||
try:
|
|
||||||
from llama_index.core import Settings
|
|
||||||
from llama_index.embeddings.huggingface import HuggingFaceEmbedding
|
|
||||||
except ImportError:
|
|
||||||
raise PipInstallHF(pip_install_error.format(cmd=' '.join(cmd)))
|
|
||||||
|
|
||||||
os.environ["TOKENIZERS_PARALLELISM"] = "true"
|
os.environ["TOKENIZERS_PARALLELISM"] = "true"
|
||||||
Settings.embed_model = HuggingFaceEmbedding(model_name="BAAI/bge-small-en-v1.5")
|
Settings.embed_model = HuggingFaceEmbedding(model_name="BAAI/bge-small-en-v1.5")
|
||||||
|
|
|
@ -148,6 +148,15 @@ def scrub_sensitive_info(args, text):
|
||||||
return text
|
return text
|
||||||
|
|
||||||
|
|
||||||
|
def check_streamlit_install(io):
|
||||||
|
return utils.check_pip_install_extra(
|
||||||
|
io,
|
||||||
|
"streamlit",
|
||||||
|
"You need to install the aider browser feature",
|
||||||
|
["aider-chat[browser]"],
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def launch_gui(args):
|
def launch_gui(args):
|
||||||
from streamlit.web import cli
|
from streamlit.web import cli
|
||||||
|
|
||||||
|
@ -318,10 +327,6 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
|
|
||||||
litellm.client_session = httpx.Client(verify=False)
|
litellm.client_session = httpx.Client(verify=False)
|
||||||
|
|
||||||
if args.gui and not return_coder:
|
|
||||||
launch_gui(argv)
|
|
||||||
return
|
|
||||||
|
|
||||||
if args.dark_mode:
|
if args.dark_mode:
|
||||||
args.user_input_color = "#32FF32"
|
args.user_input_color = "#32FF32"
|
||||||
args.tool_error_color = "#FF3333"
|
args.tool_error_color = "#FF3333"
|
||||||
|
@ -355,6 +360,12 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
editingmode=editing_mode,
|
editingmode=editing_mode,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if args.gui and not return_coder:
|
||||||
|
if not check_streamlit_install(io):
|
||||||
|
return
|
||||||
|
launch_gui(argv)
|
||||||
|
return
|
||||||
|
|
||||||
for fname in loaded_dotenvs:
|
for fname in loaded_dotenvs:
|
||||||
io.tool_output(f"Loaded {fname}")
|
io.tool_output(f"Loaded {fname}")
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,7 @@ ANTHROPIC_MODELS = [ln.strip() for ln in ANTHROPIC_MODELS.splitlines() if ln.str
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class ModelSettings:
|
class ModelSettings:
|
||||||
|
# Model class needs to have each of these as well
|
||||||
name: str
|
name: str
|
||||||
edit_format: str
|
edit_format: str
|
||||||
weak_model_name: Optional[str] = None
|
weak_model_name: Optional[str] = None
|
||||||
|
@ -360,6 +361,7 @@ class Model:
|
||||||
lazy = False
|
lazy = False
|
||||||
reminder_as_sys_msg = False
|
reminder_as_sys_msg = False
|
||||||
examples_as_sys_msg = False
|
examples_as_sys_msg = False
|
||||||
|
can_prefill = False
|
||||||
|
|
||||||
max_chat_history_tokens = 1024
|
max_chat_history_tokens = 1024
|
||||||
weak_model = None
|
weak_model = None
|
||||||
|
@ -652,11 +654,7 @@ def sanity_check_model(io, model):
|
||||||
if possible_matches:
|
if possible_matches:
|
||||||
io.tool_output("Did you mean one of these?")
|
io.tool_output("Did you mean one of these?")
|
||||||
for match in possible_matches:
|
for match in possible_matches:
|
||||||
fq, m = match
|
io.tool_output(f"- {model}")
|
||||||
if fq == m:
|
|
||||||
io.tool_output(f"- {m}")
|
|
||||||
else:
|
|
||||||
io.tool_output(f"- {m} ({fq})")
|
|
||||||
|
|
||||||
if show:
|
if show:
|
||||||
io.tool_output(f"For more info, see: {urls.model_warnings}\n")
|
io.tool_output(f"For more info, see: {urls.model_warnings}\n")
|
||||||
|
@ -665,7 +663,7 @@ def sanity_check_model(io, model):
|
||||||
def fuzzy_match_models(name):
|
def fuzzy_match_models(name):
|
||||||
name = name.lower()
|
name = name.lower()
|
||||||
|
|
||||||
chat_models = []
|
chat_models = set()
|
||||||
for model, attrs in litellm.model_cost.items():
|
for model, attrs in litellm.model_cost.items():
|
||||||
model = model.lower()
|
model = model.lower()
|
||||||
if attrs.get("mode") != "chat":
|
if attrs.get("mode") != "chat":
|
||||||
|
@ -677,8 +675,10 @@ def fuzzy_match_models(name):
|
||||||
else:
|
else:
|
||||||
fq_model = provider + model
|
fq_model = provider + model
|
||||||
|
|
||||||
chat_models.append((fq_model, model))
|
chat_models.add(fq_model)
|
||||||
|
chat_models.add(model)
|
||||||
|
|
||||||
|
chat_models = sorted(chat_models)
|
||||||
# exactly matching model
|
# exactly matching model
|
||||||
# matching_models = [
|
# matching_models = [
|
||||||
# (fq,m) for fq,m in chat_models
|
# (fq,m) for fq,m in chat_models
|
||||||
|
@ -688,19 +688,14 @@ def fuzzy_match_models(name):
|
||||||
# return matching_models
|
# return matching_models
|
||||||
|
|
||||||
# Check for model names containing the name
|
# Check for model names containing the name
|
||||||
matching_models = [(fq, m) for fq, m in chat_models if name in fq]
|
matching_models = [m for m in chat_models if name in m]
|
||||||
if matching_models:
|
if matching_models:
|
||||||
return matching_models
|
return matching_models
|
||||||
|
|
||||||
# Check for slight misspellings
|
# Check for slight misspellings
|
||||||
models = [m for fq, m in chat_models]
|
models = list(chat_models)
|
||||||
matching_models = difflib.get_close_matches(name, models, n=3, cutoff=0.8)
|
matching_models = difflib.get_close_matches(name, models, n=3, cutoff=0.8)
|
||||||
if matching_models:
|
return sorted(matching_models)
|
||||||
return list(zip(matching_models, matching_models))
|
|
||||||
|
|
||||||
fq_models = [fq for fq, m in chat_models]
|
|
||||||
matching_models = difflib.get_close_matches(name, fq_models, n=3, cutoff=0.8)
|
|
||||||
return list(zip(matching_models, matching_models))
|
|
||||||
|
|
||||||
|
|
||||||
def print_matching_models(io, search):
|
def print_matching_models(io, search):
|
||||||
|
@ -708,8 +703,7 @@ def print_matching_models(io, search):
|
||||||
if matches:
|
if matches:
|
||||||
io.tool_output(f'Models which match "{search}":')
|
io.tool_output(f'Models which match "{search}":')
|
||||||
for model in matches:
|
for model in matches:
|
||||||
fq, m = model
|
io.tool_output(f"- {model}")
|
||||||
io.tool_output(f"- {fq}")
|
|
||||||
else:
|
else:
|
||||||
io.tool_output(f'No models match "{search}".')
|
io.tool_output(f'No models match "{search}".')
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from aider.help import Help
|
from aider.help import Help, install_help_extra
|
||||||
|
from aider.io import InputOutput
|
||||||
|
|
||||||
|
|
||||||
class TestHelp(unittest.TestCase):
|
class TestHelp(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
Help(pip_install=True)
|
io = InputOutput(yes=True)
|
||||||
|
install_help_extra(io)
|
||||||
|
|
||||||
def test_init(self):
|
def test_init(self):
|
||||||
help_inst = Help()
|
help_inst = Help()
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
|
import itertools
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
import itertools
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import git
|
import git
|
||||||
|
@ -182,7 +182,6 @@ def split_chat_history_markdown(text, include_tool=False):
|
||||||
|
|
||||||
|
|
||||||
def get_pip_install(args):
|
def get_pip_install(args):
|
||||||
|
|
||||||
cmd = [
|
cmd = [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
"-m",
|
"-m",
|
||||||
|
@ -192,14 +191,22 @@ def get_pip_install(args):
|
||||||
cmd += args
|
cmd += args
|
||||||
return cmd
|
return cmd
|
||||||
|
|
||||||
|
|
||||||
def run_install(cmd):
|
def run_install(cmd):
|
||||||
print()
|
print()
|
||||||
print("Installing: ", ' '.join(cmd))
|
print("Installing: ", " ".join(cmd))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, bufsize=1, universal_newlines=True)
|
|
||||||
output = []
|
output = []
|
||||||
spinner = itertools.cycle(['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'])
|
process = subprocess.Popen(
|
||||||
|
cmd,
|
||||||
|
stdout=subprocess.PIPE,
|
||||||
|
stderr=subprocess.STDOUT,
|
||||||
|
text=True,
|
||||||
|
bufsize=1,
|
||||||
|
universal_newlines=True,
|
||||||
|
)
|
||||||
|
spinner = itertools.cycle(["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"])
|
||||||
|
|
||||||
for line in process.stdout:
|
for line in process.stdout:
|
||||||
output.append(line)
|
output.append(line)
|
||||||
|
@ -208,14 +215,45 @@ def run_install(cmd):
|
||||||
return_code = process.wait()
|
return_code = process.wait()
|
||||||
|
|
||||||
if return_code == 0:
|
if return_code == 0:
|
||||||
print("\rInstallation completed successfully.")
|
print("\rInstallation complete.")
|
||||||
print()
|
print()
|
||||||
return True
|
return True, output
|
||||||
|
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
print(f"\nError running pip install: {e}")
|
print(f"\nError running pip install: {e}")
|
||||||
|
|
||||||
print("\nInstallation failed.\n")
|
print("\nInstallation failed.\n")
|
||||||
|
|
||||||
|
return False, output
|
||||||
|
|
||||||
|
|
||||||
|
def check_pip_install_extra(io, module, prompt, pip_install_cmd):
|
||||||
|
try:
|
||||||
|
__import__(module)
|
||||||
|
return True
|
||||||
|
except (ImportError, ModuleNotFoundError):
|
||||||
|
pass
|
||||||
|
|
||||||
|
cmd = get_pip_install(pip_install_cmd)
|
||||||
|
|
||||||
|
text = f"{prompt}:\n\n{' '.join(cmd)}\n"
|
||||||
|
io.tool_error(text)
|
||||||
|
|
||||||
|
if not io.confirm_ask("Run pip install?", default="y"):
|
||||||
|
return
|
||||||
|
|
||||||
|
success, output = run_install(cmd)
|
||||||
|
if not success:
|
||||||
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
|
__import__(module)
|
||||||
|
return True
|
||||||
|
except (ImportError, ModuleNotFoundError):
|
||||||
|
pass
|
||||||
|
|
||||||
for line in output:
|
for line in output:
|
||||||
print(line)
|
print(line)
|
||||||
|
|
||||||
|
print()
|
||||||
|
print(f"Failed to install {pip_install_cmd[0]}")
|
||||||
|
|
|
@ -29,9 +29,9 @@ def check_version(io, just_check=False):
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
io.tool_error(f"Error checking pypi for new version: {err}")
|
io.tool_error(f"Error checking pypi for new version: {err}")
|
||||||
return False
|
return False
|
||||||
|
finally:
|
||||||
fname.parent.mkdir(parents=True, exist_ok=True)
|
fname.parent.mkdir(parents=True, exist_ok=True)
|
||||||
fname.touch()
|
fname.touch()
|
||||||
|
|
||||||
if just_check:
|
if just_check:
|
||||||
return is_update_available
|
return is_update_available
|
||||||
|
@ -49,7 +49,8 @@ Newer aider version v{latest_version} is available. To upgrade, run:
|
||||||
io.tool_error(text)
|
io.tool_error(text)
|
||||||
|
|
||||||
if io.confirm_ask("Run pip install?"):
|
if io.confirm_ask("Run pip install?"):
|
||||||
if utils.run_install(cmd):
|
success, _output = utils.run_install(cmd)
|
||||||
|
if success:
|
||||||
io.tool_output("Re-run aider to use new version.")
|
io.tool_output("Re-run aider to use new version.")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
|
|
@ -85,8 +85,12 @@ class Voice:
|
||||||
|
|
||||||
self.start_time = time.time()
|
self.start_time = time.time()
|
||||||
|
|
||||||
with self.sd.InputStream(samplerate=sample_rate, channels=1, callback=self.callback):
|
try:
|
||||||
prompt(self.get_prompt, refresh_interval=0.1)
|
with self.sd.InputStream(samplerate=sample_rate, channels=1, callback=self.callback):
|
||||||
|
prompt(self.get_prompt, refresh_interval=0.1)
|
||||||
|
except self.sd.PortAudioError as err:
|
||||||
|
print(err)
|
||||||
|
return
|
||||||
|
|
||||||
with sf.SoundFile(filename, mode="x", samplerate=sample_rate, channels=1) as file:
|
with sf.SoundFile(filename, mode="x", samplerate=sample_rate, channels=1) as file:
|
||||||
while not self.q.empty():
|
while not self.q.empty():
|
||||||
|
|
|
@ -681,4 +681,26 @@
|
||||||
versions: 0.41.1-dev
|
versions: 0.41.1-dev
|
||||||
seconds_per_case: 7.1
|
seconds_per_case: 7.1
|
||||||
total_cost: 0.1946
|
total_cost: 0.1946
|
||||||
|
|
||||||
|
- dirname: 2024-07-09-10-12-27--gemma2:27b-instruct-q8_0
|
||||||
|
test_cases: 133
|
||||||
|
model: gemma2:27b-instruct-q8_0
|
||||||
|
edit_format: whole
|
||||||
|
commit_hash: f9d96ac-dirty
|
||||||
|
pass_rate_1: 31.6
|
||||||
|
pass_rate_2: 36.1
|
||||||
|
percent_cases_well_formed: 100.0
|
||||||
|
error_outputs: 35
|
||||||
|
num_malformed_responses: 0
|
||||||
|
num_with_malformed_responses: 0
|
||||||
|
user_asks: 35
|
||||||
|
lazy_comments: 2
|
||||||
|
syntax_errors: 0
|
||||||
|
indentation_errors: 0
|
||||||
|
exhausted_context_windows: 0
|
||||||
|
test_timeouts: 3
|
||||||
|
command: aider --model ollama/gemma2:27b-instruct-q8_0
|
||||||
|
date: 2024-07-09
|
||||||
|
versions: 0.43.0
|
||||||
|
seconds_per_case: 101.3
|
||||||
|
total_cost: 0.0000
|
|
@ -1,5 +1,5 @@
|
||||||
##########################################################
|
##########################################################
|
||||||
# Sample .aider.conf.yaml
|
# Sample .aider.conf.yml
|
||||||
# This file lists *all* the valid configuration entries.
|
# This file lists *all* the valid configuration entries.
|
||||||
# Place in your home dir, or at the root of your git repo.
|
# Place in your home dir, or at the root of your git repo.
|
||||||
##########################################################
|
##########################################################
|
||||||
|
@ -207,10 +207,10 @@
|
||||||
#version:
|
#version:
|
||||||
|
|
||||||
## Check for updates and return status in the exit code
|
## Check for updates and return status in the exit code
|
||||||
#check-update: false
|
#just-check-update: false
|
||||||
|
|
||||||
## Skips checking for the update when the program runs
|
## Check for new aider versions on launch
|
||||||
#skip-check-update: false
|
#check-update: true
|
||||||
|
|
||||||
## Apply the changes from the given file instead of running the chat (debug)
|
## Apply the changes from the given file instead of running the chat (debug)
|
||||||
#apply:
|
#apply:
|
||||||
|
|
|
@ -208,10 +208,10 @@
|
||||||
#AIDER_VOICE_LANGUAGE=en
|
#AIDER_VOICE_LANGUAGE=en
|
||||||
|
|
||||||
## Check for updates and return status in the exit code
|
## Check for updates and return status in the exit code
|
||||||
#AIDER_CHECK_UPDATE=false
|
#AIDER_JUST_CHECK_UPDATE=false
|
||||||
|
|
||||||
## Skips checking for the update when the program runs
|
## Check for new aider versions on launch
|
||||||
#AIDER_SKIP_CHECK_UPDATE=false
|
#AIDER_CHECK_UPDATE=true
|
||||||
|
|
||||||
## Apply the changes from the given file instead of running the chat (debug)
|
## Apply the changes from the given file instead of running the chat (debug)
|
||||||
#AIDER_APPLY=
|
#AIDER_APPLY=
|
||||||
|
|
|
@ -38,7 +38,7 @@ cog.outl("```")
|
||||||
]]]-->
|
]]]-->
|
||||||
```
|
```
|
||||||
##########################################################
|
##########################################################
|
||||||
# Sample .aider.conf.yaml
|
# Sample .aider.conf.yml
|
||||||
# This file lists *all* the valid configuration entries.
|
# This file lists *all* the valid configuration entries.
|
||||||
# Place in your home dir, or at the root of your git repo.
|
# Place in your home dir, or at the root of your git repo.
|
||||||
##########################################################
|
##########################################################
|
||||||
|
@ -246,10 +246,10 @@ cog.outl("```")
|
||||||
#version:
|
#version:
|
||||||
|
|
||||||
## Check for updates and return status in the exit code
|
## Check for updates and return status in the exit code
|
||||||
#check-update: false
|
#just-check-update: false
|
||||||
|
|
||||||
## Skips checking for the update when the program runs
|
## Check for new aider versions on launch
|
||||||
#skip-check-update: false
|
#check-update: true
|
||||||
|
|
||||||
## Apply the changes from the given file instead of running the chat (debug)
|
## Apply the changes from the given file instead of running the chat (debug)
|
||||||
#apply:
|
#apply:
|
||||||
|
|
|
@ -250,10 +250,10 @@ cog.outl("```")
|
||||||
#AIDER_VOICE_LANGUAGE=en
|
#AIDER_VOICE_LANGUAGE=en
|
||||||
|
|
||||||
## Check for updates and return status in the exit code
|
## Check for updates and return status in the exit code
|
||||||
#AIDER_CHECK_UPDATE=false
|
#AIDER_JUST_CHECK_UPDATE=false
|
||||||
|
|
||||||
## Skips checking for the update when the program runs
|
## Check for new aider versions on launch
|
||||||
#AIDER_SKIP_CHECK_UPDATE=false
|
#AIDER_CHECK_UPDATE=true
|
||||||
|
|
||||||
## Apply the changes from the given file instead of running the chat (debug)
|
## Apply the changes from the given file instead of running the chat (debug)
|
||||||
#AIDER_APPLY=
|
#AIDER_APPLY=
|
||||||
|
|
|
@ -51,10 +51,11 @@ usage: aider [-h] [--openai-api-key] [--anthropic-api-key] [--model]
|
||||||
[--dry-run | --no-dry-run] [--commit] [--lint]
|
[--dry-run | --no-dry-run] [--commit] [--lint]
|
||||||
[--lint-cmd] [--auto-lint | --no-auto-lint]
|
[--lint-cmd] [--auto-lint | --no-auto-lint]
|
||||||
[--test-cmd] [--auto-test | --no-auto-test] [--test]
|
[--test-cmd] [--auto-test | --no-auto-test] [--test]
|
||||||
[--vim] [--voice-language] [--version] [--check-update]
|
[--vim] [--voice-language] [--version]
|
||||||
[--skip-check-update] [--apply] [--yes] [-v]
|
[--just-check-update]
|
||||||
[--show-repo-map] [--show-prompts] [--exit] [--message]
|
[--check-update | --no-check-update] [--apply] [--yes]
|
||||||
[--message-file] [--encoding] [-c] [--gui]
|
[-v] [--show-repo-map] [--show-prompts] [--exit]
|
||||||
|
[--message] [--message-file] [--encoding] [-c] [--gui]
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -396,15 +397,18 @@ Environment variable: `AIDER_VOICE_LANGUAGE`
|
||||||
### `--version`
|
### `--version`
|
||||||
Show the version number and exit
|
Show the version number and exit
|
||||||
|
|
||||||
### `--check-update`
|
### `--just-check-update`
|
||||||
Check for updates and return status in the exit code
|
Check for updates and return status in the exit code
|
||||||
Default: False
|
Default: False
|
||||||
Environment variable: `AIDER_CHECK_UPDATE`
|
Environment variable: `AIDER_JUST_CHECK_UPDATE`
|
||||||
|
|
||||||
### `--skip-check-update`
|
### `--check-update`
|
||||||
Skips checking for the update when the program runs
|
Check for new aider versions on launch
|
||||||
Default: False
|
Default: True
|
||||||
Environment variable: `AIDER_SKIP_CHECK_UPDATE`
|
Environment variable: `AIDER_CHECK_UPDATE`
|
||||||
|
Aliases:
|
||||||
|
- `--check-update`
|
||||||
|
- `--no-check-update`
|
||||||
|
|
||||||
### `--apply FILE`
|
### `--apply FILE`
|
||||||
Apply the changes from the given file instead of running the chat (debug)
|
Apply the changes from the given file instead of running the chat (debug)
|
||||||
|
|
|
@ -71,6 +71,7 @@ cog.out(''.join(lines))
|
||||||
- DATABRICKS_API_KEY
|
- DATABRICKS_API_KEY
|
||||||
- DEEPINFRA_API_KEY
|
- DEEPINFRA_API_KEY
|
||||||
- DEEPSEEK_API_KEY
|
- DEEPSEEK_API_KEY
|
||||||
|
- EMPOWER_API_KEY
|
||||||
- FIREWORKSAI_API_KEY
|
- FIREWORKSAI_API_KEY
|
||||||
- FIREWORKS_AI_API_KEY
|
- FIREWORKS_AI_API_KEY
|
||||||
- FIREWORKS_API_KEY
|
- FIREWORKS_API_KEY
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
FROM python:3.10-slim
|
FROM python:3.10-slim
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y less git build-essential
|
RUN apt-get install -y less git build-essential
|
||||||
COPY requirements-dev.txt /aider/requirements-dev.txt
|
COPY . /aider
|
||||||
RUN pip install --no-cache-dir --upgrade pip
|
RUN pip install --no-cache-dir --upgrade pip
|
||||||
RUN pip install --no-cache-dir -r /aider/requirements-dev.txt
|
RUN pip install --no-cache-dir /aider[dev]
|
||||||
RUN git config --global --add safe.directory /aider
|
RUN git config --global --add safe.directory /aider
|
||||||
WORKDIR /aider
|
WORKDIR /aider
|
||||||
|
|
118
requirements.txt
118
requirements.txt
|
@ -2,14 +2,12 @@
|
||||||
# This file is autogenerated by pip-compile with Python 3.12
|
# This file is autogenerated by pip-compile with Python 3.12
|
||||||
# by the following command:
|
# by the following command:
|
||||||
#
|
#
|
||||||
# pip-compile requirements.in
|
# pip-compile --output-file=requirements.txt requirements/requirements.in
|
||||||
#
|
#
|
||||||
aiohttp==3.9.5
|
aiohttp==3.9.5
|
||||||
# via litellm
|
# via litellm
|
||||||
aiosignal==1.3.1
|
aiosignal==1.3.1
|
||||||
# via aiohttp
|
# via aiohttp
|
||||||
altair==5.3.0
|
|
||||||
# via streamlit
|
|
||||||
annotated-types==0.7.0
|
annotated-types==0.7.0
|
||||||
# via pydantic
|
# via pydantic
|
||||||
anyio==4.4.0
|
anyio==4.4.0
|
||||||
|
@ -22,15 +20,11 @@ attrs==23.2.0
|
||||||
# jsonschema
|
# jsonschema
|
||||||
# referencing
|
# referencing
|
||||||
backoff==2.2.1
|
backoff==2.2.1
|
||||||
# via -r requirements.in
|
# via -r requirements/requirements.in
|
||||||
beautifulsoup4==4.12.3
|
beautifulsoup4==4.12.3
|
||||||
# via -r requirements.in
|
# via -r requirements/requirements.in
|
||||||
blinker==1.8.2
|
|
||||||
# via streamlit
|
|
||||||
cachetools==5.3.3
|
cachetools==5.3.3
|
||||||
# via
|
# via google-auth
|
||||||
# google-auth
|
|
||||||
# streamlit
|
|
||||||
certifi==2024.7.4
|
certifi==2024.7.4
|
||||||
# via
|
# via
|
||||||
# httpcore
|
# httpcore
|
||||||
|
@ -43,21 +37,19 @@ cffi==1.16.0
|
||||||
charset-normalizer==3.3.2
|
charset-normalizer==3.3.2
|
||||||
# via requests
|
# via requests
|
||||||
click==8.1.7
|
click==8.1.7
|
||||||
# via
|
# via litellm
|
||||||
# litellm
|
|
||||||
# streamlit
|
|
||||||
configargparse==1.7
|
configargparse==1.7
|
||||||
# via -r requirements.in
|
# via -r requirements/requirements.in
|
||||||
diff-match-patch==20230430
|
diff-match-patch==20230430
|
||||||
# via -r requirements.in
|
# via -r requirements/requirements.in
|
||||||
diskcache==5.6.3
|
diskcache==5.6.3
|
||||||
# via -r requirements.in
|
# via -r requirements/requirements.in
|
||||||
distro==1.9.0
|
distro==1.9.0
|
||||||
# via openai
|
# via openai
|
||||||
filelock==3.15.4
|
filelock==3.15.4
|
||||||
# via huggingface-hub
|
# via huggingface-hub
|
||||||
flake8==7.1.0
|
flake8==7.1.0
|
||||||
# via -r requirements.in
|
# via -r requirements/requirements.in
|
||||||
frozenlist==1.4.1
|
frozenlist==1.4.1
|
||||||
# via
|
# via
|
||||||
# aiohttp
|
# aiohttp
|
||||||
|
@ -67,9 +59,7 @@ fsspec==2024.6.1
|
||||||
gitdb==4.0.11
|
gitdb==4.0.11
|
||||||
# via gitpython
|
# via gitpython
|
||||||
gitpython==3.1.43
|
gitpython==3.1.43
|
||||||
# via
|
# via -r requirements/requirements.in
|
||||||
# -r requirements.in
|
|
||||||
# streamlit
|
|
||||||
google-ai-generativelanguage==0.6.6
|
google-ai-generativelanguage==0.6.6
|
||||||
# via google-generativeai
|
# via google-generativeai
|
||||||
google-api-core[grpc]==2.19.1
|
google-api-core[grpc]==2.19.1
|
||||||
|
@ -89,7 +79,7 @@ google-auth==2.31.0
|
||||||
google-auth-httplib2==0.2.0
|
google-auth-httplib2==0.2.0
|
||||||
# via google-api-python-client
|
# via google-api-python-client
|
||||||
google-generativeai==0.7.1
|
google-generativeai==0.7.1
|
||||||
# via -r requirements.in
|
# via -r requirements/requirements.in
|
||||||
googleapis-common-protos==1.63.2
|
googleapis-common-protos==1.63.2
|
||||||
# via
|
# via
|
||||||
# google-api-core
|
# google-api-core
|
||||||
|
@ -97,7 +87,7 @@ googleapis-common-protos==1.63.2
|
||||||
greenlet==3.0.3
|
greenlet==3.0.3
|
||||||
# via playwright
|
# via playwright
|
||||||
grep-ast==0.3.2
|
grep-ast==0.3.2
|
||||||
# via -r requirements.in
|
# via -r requirements/requirements.in
|
||||||
grpcio==1.64.1
|
grpcio==1.64.1
|
||||||
# via
|
# via
|
||||||
# google-api-core
|
# google-api-core
|
||||||
|
@ -124,24 +114,20 @@ idna==3.7
|
||||||
# yarl
|
# yarl
|
||||||
importlib-metadata==7.2.1
|
importlib-metadata==7.2.1
|
||||||
# via
|
# via
|
||||||
# -r requirements.in
|
# -r requirements/requirements.in
|
||||||
# litellm
|
# litellm
|
||||||
importlib-resources==6.4.0
|
importlib-resources==6.4.0
|
||||||
# via -r requirements.in
|
# via -r requirements/requirements.in
|
||||||
jinja2==3.1.4
|
jinja2==3.1.4
|
||||||
# via
|
# via litellm
|
||||||
# altair
|
|
||||||
# litellm
|
|
||||||
# pydeck
|
|
||||||
jsonschema==4.22.0
|
jsonschema==4.22.0
|
||||||
# via
|
# via
|
||||||
# -r requirements.in
|
# -r requirements/requirements.in
|
||||||
# altair
|
|
||||||
# litellm
|
# litellm
|
||||||
jsonschema-specifications==2023.12.1
|
jsonschema-specifications==2023.12.1
|
||||||
# via jsonschema
|
# via jsonschema
|
||||||
litellm==1.41.6
|
litellm==1.41.6
|
||||||
# via -r requirements.in
|
# via -r requirements/requirements.in
|
||||||
markdown-it-py==3.0.0
|
markdown-it-py==3.0.0
|
||||||
# via rich
|
# via rich
|
||||||
markupsafe==2.1.5
|
markupsafe==2.1.5
|
||||||
|
@ -155,40 +141,27 @@ multidict==6.0.5
|
||||||
# aiohttp
|
# aiohttp
|
||||||
# yarl
|
# yarl
|
||||||
networkx==3.2.1
|
networkx==3.2.1
|
||||||
# via -r requirements.in
|
# via -r requirements/requirements.in
|
||||||
numpy==1.26.4
|
numpy==1.26.4
|
||||||
# via
|
# via
|
||||||
# -r requirements.in
|
# -r requirements/requirements.in
|
||||||
# altair
|
|
||||||
# pandas
|
|
||||||
# pyarrow
|
|
||||||
# pydeck
|
|
||||||
# scipy
|
# scipy
|
||||||
# streamlit
|
|
||||||
openai==1.35.10
|
openai==1.35.10
|
||||||
# via litellm
|
# via litellm
|
||||||
packaging==24.1
|
packaging==24.1
|
||||||
# via
|
# via
|
||||||
# -r requirements.in
|
# -r requirements/requirements.in
|
||||||
# altair
|
|
||||||
# huggingface-hub
|
# huggingface-hub
|
||||||
# streamlit
|
|
||||||
pandas==2.2.2
|
|
||||||
# via
|
|
||||||
# altair
|
|
||||||
# streamlit
|
|
||||||
pathspec==0.12.1
|
pathspec==0.12.1
|
||||||
# via
|
# via
|
||||||
# -r requirements.in
|
# -r requirements/requirements.in
|
||||||
# grep-ast
|
# grep-ast
|
||||||
pillow==10.4.0
|
pillow==10.4.0
|
||||||
# via
|
# via -r requirements/requirements.in
|
||||||
# -r requirements.in
|
|
||||||
# streamlit
|
|
||||||
playwright==1.45.0
|
playwright==1.45.0
|
||||||
# via -r requirements.in
|
# via -r requirements/requirements.in
|
||||||
prompt-toolkit==3.0.47
|
prompt-toolkit==3.0.47
|
||||||
# via -r requirements.in
|
# via -r requirements/requirements.in
|
||||||
proto-plus==1.24.0
|
proto-plus==1.24.0
|
||||||
# via
|
# via
|
||||||
# google-ai-generativelanguage
|
# google-ai-generativelanguage
|
||||||
|
@ -201,9 +174,6 @@ protobuf==4.25.3
|
||||||
# googleapis-common-protos
|
# googleapis-common-protos
|
||||||
# grpcio-status
|
# grpcio-status
|
||||||
# proto-plus
|
# proto-plus
|
||||||
# streamlit
|
|
||||||
pyarrow==16.1.0
|
|
||||||
# via streamlit
|
|
||||||
pyasn1==0.6.0
|
pyasn1==0.6.0
|
||||||
# via
|
# via
|
||||||
# pyasn1-modules
|
# pyasn1-modules
|
||||||
|
@ -221,8 +191,6 @@ pydantic==2.8.2
|
||||||
# openai
|
# openai
|
||||||
pydantic-core==2.20.1
|
pydantic-core==2.20.1
|
||||||
# via pydantic
|
# via pydantic
|
||||||
pydeck==0.9.1
|
|
||||||
# via streamlit
|
|
||||||
pyee==11.1.0
|
pyee==11.1.0
|
||||||
# via playwright
|
# via playwright
|
||||||
pyflakes==3.2.0
|
pyflakes==3.2.0
|
||||||
|
@ -230,18 +198,14 @@ pyflakes==3.2.0
|
||||||
pygments==2.18.0
|
pygments==2.18.0
|
||||||
# via rich
|
# via rich
|
||||||
pypandoc==1.13
|
pypandoc==1.13
|
||||||
# via -r requirements.in
|
# via -r requirements/requirements.in
|
||||||
pyparsing==3.1.2
|
pyparsing==3.1.2
|
||||||
# via httplib2
|
# via httplib2
|
||||||
python-dateutil==2.9.0.post0
|
|
||||||
# via pandas
|
|
||||||
python-dotenv==1.0.1
|
python-dotenv==1.0.1
|
||||||
# via litellm
|
# via litellm
|
||||||
pytz==2024.1
|
|
||||||
# via pandas
|
|
||||||
pyyaml==6.0.1
|
pyyaml==6.0.1
|
||||||
# via
|
# via
|
||||||
# -r requirements.in
|
# -r requirements/requirements.in
|
||||||
# huggingface-hub
|
# huggingface-hub
|
||||||
referencing==0.35.1
|
referencing==0.35.1
|
||||||
# via
|
# via
|
||||||
|
@ -254,12 +218,9 @@ requests==2.32.3
|
||||||
# google-api-core
|
# google-api-core
|
||||||
# huggingface-hub
|
# huggingface-hub
|
||||||
# litellm
|
# litellm
|
||||||
# streamlit
|
|
||||||
# tiktoken
|
# tiktoken
|
||||||
rich==13.7.1
|
rich==13.7.1
|
||||||
# via
|
# via -r requirements/requirements.in
|
||||||
# -r requirements.in
|
|
||||||
# streamlit
|
|
||||||
rpds-py==0.18.1
|
rpds-py==0.18.1
|
||||||
# via
|
# via
|
||||||
# jsonschema
|
# jsonschema
|
||||||
|
@ -267,9 +228,7 @@ rpds-py==0.18.1
|
||||||
rsa==4.9
|
rsa==4.9
|
||||||
# via google-auth
|
# via google-auth
|
||||||
scipy==1.13.1
|
scipy==1.13.1
|
||||||
# via -r requirements.in
|
# via -r requirements/requirements.in
|
||||||
six==1.16.0
|
|
||||||
# via python-dateutil
|
|
||||||
smmap==5.0.1
|
smmap==5.0.1
|
||||||
# via gitdb
|
# via gitdb
|
||||||
sniffio==1.3.1
|
sniffio==1.3.1
|
||||||
|
@ -278,25 +237,15 @@ sniffio==1.3.1
|
||||||
# httpx
|
# httpx
|
||||||
# openai
|
# openai
|
||||||
sounddevice==0.4.7
|
sounddevice==0.4.7
|
||||||
# via -r requirements.in
|
# via -r requirements/requirements.in
|
||||||
soundfile==0.12.1
|
soundfile==0.12.1
|
||||||
# via -r requirements.in
|
# via -r requirements/requirements.in
|
||||||
soupsieve==2.5
|
soupsieve==2.5
|
||||||
# via beautifulsoup4
|
# via beautifulsoup4
|
||||||
streamlit==1.36.0
|
|
||||||
# via -r requirements.in
|
|
||||||
tenacity==8.4.2
|
|
||||||
# via streamlit
|
|
||||||
tiktoken==0.7.0
|
tiktoken==0.7.0
|
||||||
# via litellm
|
# via litellm
|
||||||
tokenizers==0.19.1
|
tokenizers==0.19.1
|
||||||
# via litellm
|
# via litellm
|
||||||
toml==0.10.2
|
|
||||||
# via streamlit
|
|
||||||
toolz==0.12.1
|
|
||||||
# via altair
|
|
||||||
tornado==6.4.1
|
|
||||||
# via streamlit
|
|
||||||
tqdm==4.66.4
|
tqdm==4.66.4
|
||||||
# via
|
# via
|
||||||
# google-generativeai
|
# google-generativeai
|
||||||
|
@ -304,7 +253,7 @@ tqdm==4.66.4
|
||||||
# openai
|
# openai
|
||||||
tree-sitter==0.21.3
|
tree-sitter==0.21.3
|
||||||
# via
|
# via
|
||||||
# -r requirements.in
|
# -r requirements/requirements.in
|
||||||
# tree-sitter-languages
|
# tree-sitter-languages
|
||||||
tree-sitter-languages==1.10.2
|
tree-sitter-languages==1.10.2
|
||||||
# via grep-ast
|
# via grep-ast
|
||||||
|
@ -316,15 +265,10 @@ typing-extensions==4.12.2
|
||||||
# pydantic
|
# pydantic
|
||||||
# pydantic-core
|
# pydantic-core
|
||||||
# pyee
|
# pyee
|
||||||
# streamlit
|
|
||||||
tzdata==2024.1
|
|
||||||
# via pandas
|
|
||||||
uritemplate==4.1.1
|
uritemplate==4.1.1
|
||||||
# via google-api-python-client
|
# via google-api-python-client
|
||||||
urllib3==2.2.2
|
urllib3==2.2.2
|
||||||
# via requests
|
# via requests
|
||||||
watchdog==4.0.1
|
|
||||||
# via -r requirements.in
|
|
||||||
wcwidth==0.2.13
|
wcwidth==0.2.13
|
||||||
# via prompt-toolkit
|
# via prompt-toolkit
|
||||||
yarl==1.9.4
|
yarl==1.9.4
|
||||||
|
|
4
requirements/requirements-browser.in
Normal file
4
requirements/requirements-browser.in
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
-c ../requirements.txt
|
||||||
|
|
||||||
|
streamlit
|
||||||
|
watchdog
|
151
requirements/requirements-browser.txt
Normal file
151
requirements/requirements-browser.txt
Normal file
|
@ -0,0 +1,151 @@
|
||||||
|
#
|
||||||
|
# This file is autogenerated by pip-compile with Python 3.12
|
||||||
|
# by the following command:
|
||||||
|
#
|
||||||
|
# pip-compile --output-file=requirements/requirements-browser.txt requirements/requirements-browser.in
|
||||||
|
#
|
||||||
|
altair==5.3.0
|
||||||
|
# via streamlit
|
||||||
|
attrs==23.2.0
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# jsonschema
|
||||||
|
# referencing
|
||||||
|
blinker==1.8.2
|
||||||
|
# via streamlit
|
||||||
|
cachetools==5.3.3
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# streamlit
|
||||||
|
certifi==2024.7.4
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# requests
|
||||||
|
charset-normalizer==3.3.2
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# requests
|
||||||
|
click==8.1.7
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# streamlit
|
||||||
|
gitdb==4.0.11
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# gitpython
|
||||||
|
gitpython==3.1.43
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# streamlit
|
||||||
|
idna==3.7
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# requests
|
||||||
|
jinja2==3.1.4
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# altair
|
||||||
|
# pydeck
|
||||||
|
jsonschema==4.22.0
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# altair
|
||||||
|
jsonschema-specifications==2023.12.1
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# jsonschema
|
||||||
|
markdown-it-py==3.0.0
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# rich
|
||||||
|
markupsafe==2.1.5
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# jinja2
|
||||||
|
mdurl==0.1.2
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# markdown-it-py
|
||||||
|
numpy==1.26.4
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# altair
|
||||||
|
# pandas
|
||||||
|
# pyarrow
|
||||||
|
# pydeck
|
||||||
|
# streamlit
|
||||||
|
packaging==24.1
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# altair
|
||||||
|
# streamlit
|
||||||
|
pandas==2.2.2
|
||||||
|
# via
|
||||||
|
# altair
|
||||||
|
# streamlit
|
||||||
|
pillow==10.4.0
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# streamlit
|
||||||
|
protobuf==4.25.3
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# streamlit
|
||||||
|
pyarrow==16.1.0
|
||||||
|
# via streamlit
|
||||||
|
pydeck==0.9.1
|
||||||
|
# via streamlit
|
||||||
|
pygments==2.18.0
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# rich
|
||||||
|
python-dateutil==2.9.0.post0
|
||||||
|
# via pandas
|
||||||
|
pytz==2024.1
|
||||||
|
# via pandas
|
||||||
|
referencing==0.35.1
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# jsonschema
|
||||||
|
# jsonschema-specifications
|
||||||
|
requests==2.32.3
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# streamlit
|
||||||
|
rich==13.7.1
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# streamlit
|
||||||
|
rpds-py==0.18.1
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# jsonschema
|
||||||
|
# referencing
|
||||||
|
six==1.16.0
|
||||||
|
# via python-dateutil
|
||||||
|
smmap==5.0.1
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# gitdb
|
||||||
|
streamlit==1.36.0
|
||||||
|
# via -r requirements/requirements-browser.in
|
||||||
|
tenacity==8.4.2
|
||||||
|
# via streamlit
|
||||||
|
toml==0.10.2
|
||||||
|
# via streamlit
|
||||||
|
toolz==0.12.1
|
||||||
|
# via altair
|
||||||
|
tornado==6.4.1
|
||||||
|
# via streamlit
|
||||||
|
typing-extensions==4.12.2
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# streamlit
|
||||||
|
tzdata==2024.1
|
||||||
|
# via pandas
|
||||||
|
urllib3==2.2.2
|
||||||
|
# via
|
||||||
|
# -c requirements/../requirements.txt
|
||||||
|
# requests
|
||||||
|
watchdog==4.0.1
|
||||||
|
# via -r requirements/requirements-browser.in
|
|
@ -1,4 +1,4 @@
|
||||||
-c requirements.txt
|
-c ../requirements.txt
|
||||||
#
|
#
|
||||||
# pip-compile --output-file=requirements-dev.txt requirements-dev.in --upgrade
|
# pip-compile --output-file=requirements-dev.txt requirements-dev.in --upgrade
|
||||||
#
|
#
|
|
@ -2,7 +2,7 @@
|
||||||
# This file is autogenerated by pip-compile with Python 3.12
|
# This file is autogenerated by pip-compile with Python 3.12
|
||||||
# by the following command:
|
# by the following command:
|
||||||
#
|
#
|
||||||
# pip-compile --output-file=requirements-dev.txt requirements-dev.in
|
# pip-compile --output-file=requirements/requirements-dev.txt requirements/requirements-dev.in
|
||||||
#
|
#
|
||||||
alabaster==0.7.16
|
alabaster==0.7.16
|
||||||
# via sphinx
|
# via sphinx
|
||||||
|
@ -12,21 +12,21 @@ build==1.2.1
|
||||||
# via pip-tools
|
# via pip-tools
|
||||||
certifi==2024.7.4
|
certifi==2024.7.4
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# requests
|
# requests
|
||||||
cfgv==3.4.0
|
cfgv==3.4.0
|
||||||
# via pre-commit
|
# via pre-commit
|
||||||
charset-normalizer==3.3.2
|
charset-normalizer==3.3.2
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# requests
|
# requests
|
||||||
click==8.1.7
|
click==8.1.7
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# pip-tools
|
# pip-tools
|
||||||
# typer
|
# typer
|
||||||
cogapp==3.4.1
|
cogapp==3.4.1
|
||||||
# via -r requirements-dev.in
|
# via -r requirements/requirements-dev.in
|
||||||
contourpy==1.2.1
|
contourpy==1.2.1
|
||||||
# via matplotlib
|
# via matplotlib
|
||||||
cycler==0.12.1
|
cycler==0.12.1
|
||||||
|
@ -43,43 +43,43 @@ docutils==0.20.1
|
||||||
# sphinx-rtd-theme
|
# sphinx-rtd-theme
|
||||||
filelock==3.15.4
|
filelock==3.15.4
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# virtualenv
|
# virtualenv
|
||||||
fonttools==4.53.0
|
fonttools==4.53.1
|
||||||
# via matplotlib
|
# via matplotlib
|
||||||
identify==2.5.36
|
identify==2.5.36
|
||||||
# via pre-commit
|
# via pre-commit
|
||||||
idna==3.7
|
idna==3.7
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# requests
|
# requests
|
||||||
imagesize==1.4.1
|
imagesize==1.4.1
|
||||||
# via sphinx
|
# via sphinx
|
||||||
imgcat==0.5.0
|
imgcat==0.5.0
|
||||||
# via -r requirements-dev.in
|
# via -r requirements/requirements-dev.in
|
||||||
iniconfig==2.0.0
|
iniconfig==2.0.0
|
||||||
# via pytest
|
# via pytest
|
||||||
jinja2==3.1.4
|
jinja2==3.1.4
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# sphinx
|
# sphinx
|
||||||
kiwisolver==1.4.5
|
kiwisolver==1.4.5
|
||||||
# via matplotlib
|
# via matplotlib
|
||||||
lox==0.12.0
|
lox==0.12.0
|
||||||
# via -r requirements-dev.in
|
# via -r requirements/requirements-dev.in
|
||||||
markdown-it-py==3.0.0
|
markdown-it-py==3.0.0
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# rich
|
# rich
|
||||||
markupsafe==2.1.5
|
markupsafe==2.1.5
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# jinja2
|
# jinja2
|
||||||
matplotlib==3.9.1
|
matplotlib==3.9.1
|
||||||
# via -r requirements-dev.in
|
# via -r requirements/requirements-dev.in
|
||||||
mdurl==0.1.2
|
mdurl==0.1.2
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# markdown-it-py
|
# markdown-it-py
|
||||||
multiprocess==0.70.16
|
multiprocess==0.70.16
|
||||||
# via pathos
|
# via pathos
|
||||||
|
@ -87,29 +87,27 @@ nodeenv==1.9.1
|
||||||
# via pre-commit
|
# via pre-commit
|
||||||
numpy==1.26.4
|
numpy==1.26.4
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# contourpy
|
# contourpy
|
||||||
# matplotlib
|
# matplotlib
|
||||||
# pandas
|
# pandas
|
||||||
packaging==24.1
|
packaging==24.1
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# build
|
# build
|
||||||
# matplotlib
|
# matplotlib
|
||||||
# pytest
|
# pytest
|
||||||
# sphinx
|
# sphinx
|
||||||
pandas==2.2.2
|
pandas==2.2.2
|
||||||
# via
|
# via -r requirements/requirements-dev.in
|
||||||
# -c requirements.txt
|
|
||||||
# -r requirements-dev.in
|
|
||||||
pathos==0.3.2
|
pathos==0.3.2
|
||||||
# via lox
|
# via lox
|
||||||
pillow==10.4.0
|
pillow==10.4.0
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# matplotlib
|
# matplotlib
|
||||||
pip-tools==7.4.1
|
pip-tools==7.4.1
|
||||||
# via -r requirements-dev.in
|
# via -r requirements/requirements-dev.in
|
||||||
platformdirs==4.2.2
|
platformdirs==4.2.2
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
pluggy==1.5.0
|
pluggy==1.5.0
|
||||||
|
@ -119,49 +117,44 @@ pox==0.3.4
|
||||||
ppft==1.7.6.8
|
ppft==1.7.6.8
|
||||||
# via pathos
|
# via pathos
|
||||||
pre-commit==3.7.1
|
pre-commit==3.7.1
|
||||||
# via -r requirements-dev.in
|
# via -r requirements/requirements-dev.in
|
||||||
pygments==2.18.0
|
pygments==2.18.0
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# rich
|
# rich
|
||||||
# sphinx
|
# sphinx
|
||||||
pyparsing==3.1.2
|
pyparsing==3.1.2
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# matplotlib
|
# matplotlib
|
||||||
pyproject-hooks==1.1.0
|
pyproject-hooks==1.1.0
|
||||||
# via
|
# via
|
||||||
# build
|
# build
|
||||||
# pip-tools
|
# pip-tools
|
||||||
pytest==8.2.2
|
pytest==8.2.2
|
||||||
# via -r requirements-dev.in
|
# via -r requirements/requirements-dev.in
|
||||||
python-dateutil==2.9.0.post0
|
python-dateutil==2.9.0.post0
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
|
||||||
# matplotlib
|
# matplotlib
|
||||||
# pandas
|
# pandas
|
||||||
pytz==2024.1
|
pytz==2024.1
|
||||||
# via
|
# via pandas
|
||||||
# -c requirements.txt
|
|
||||||
# pandas
|
|
||||||
pyyaml==6.0.1
|
pyyaml==6.0.1
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# pre-commit
|
# pre-commit
|
||||||
requests==2.32.3
|
requests==2.32.3
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# sphinx
|
# sphinx
|
||||||
rich==13.7.1
|
rich==13.7.1
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# typer
|
# typer
|
||||||
shellingham==1.5.4
|
shellingham==1.5.4
|
||||||
# via typer
|
# via typer
|
||||||
six==1.16.0
|
six==1.16.0
|
||||||
# via
|
# via python-dateutil
|
||||||
# -c requirements.txt
|
|
||||||
# python-dateutil
|
|
||||||
snowballstemmer==2.2.0
|
snowballstemmer==2.2.0
|
||||||
# via sphinx
|
# via sphinx
|
||||||
sphinx==7.3.7
|
sphinx==7.3.7
|
||||||
|
@ -185,18 +178,16 @@ sphinxcontrib-qthelp==1.0.7
|
||||||
sphinxcontrib-serializinghtml==1.1.10
|
sphinxcontrib-serializinghtml==1.1.10
|
||||||
# via sphinx
|
# via sphinx
|
||||||
typer==0.12.3
|
typer==0.12.3
|
||||||
# via -r requirements-dev.in
|
# via -r requirements/requirements-dev.in
|
||||||
typing-extensions==4.12.2
|
typing-extensions==4.12.2
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# typer
|
# typer
|
||||||
tzdata==2024.1
|
tzdata==2024.1
|
||||||
# via
|
# via pandas
|
||||||
# -c requirements.txt
|
|
||||||
# pandas
|
|
||||||
urllib3==2.2.2
|
urllib3==2.2.2
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# requests
|
# requests
|
||||||
virtualenv==20.26.3
|
virtualenv==20.26.3
|
||||||
# via pre-commit
|
# via pre-commit
|
|
@ -1,4 +1,4 @@
|
||||||
-c requirements.txt
|
-c ../requirements.txt
|
||||||
#
|
#
|
||||||
# pip-compile --output-file=requirements-hf.txt requirements-hf.in --upgrade
|
# pip-compile --output-file=requirements-hf.txt requirements-hf.in --upgrade
|
||||||
#
|
#
|
|
@ -2,43 +2,43 @@
|
||||||
# This file is autogenerated by pip-compile with Python 3.12
|
# This file is autogenerated by pip-compile with Python 3.12
|
||||||
# by the following command:
|
# by the following command:
|
||||||
#
|
#
|
||||||
# pip-compile --output-file=requirements-hf-embed.txt requirements-hf-embed.in
|
# pip-compile --output-file=requirements/requirements-hf-embed.txt requirements/requirements-hf-embed.in
|
||||||
#
|
#
|
||||||
aiohttp==3.9.5
|
aiohttp==3.9.5
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# huggingface-hub
|
# huggingface-hub
|
||||||
# llama-index-core
|
# llama-index-core
|
||||||
aiosignal==1.3.1
|
aiosignal==1.3.1
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# aiohttp
|
# aiohttp
|
||||||
annotated-types==0.7.0
|
annotated-types==0.7.0
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# pydantic
|
# pydantic
|
||||||
anyio==4.4.0
|
anyio==4.4.0
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# httpx
|
# httpx
|
||||||
# openai
|
# openai
|
||||||
attrs==23.2.0
|
attrs==23.2.0
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# aiohttp
|
# aiohttp
|
||||||
certifi==2024.7.4
|
certifi==2024.7.4
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# httpcore
|
# httpcore
|
||||||
# httpx
|
# httpx
|
||||||
# requests
|
# requests
|
||||||
charset-normalizer==3.3.2
|
charset-normalizer==3.3.2
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# requests
|
# requests
|
||||||
click==8.1.7
|
click==8.1.7
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# nltk
|
# nltk
|
||||||
dataclasses-json==0.6.7
|
dataclasses-json==0.6.7
|
||||||
# via llama-index-core
|
# via llama-index-core
|
||||||
|
@ -48,60 +48,60 @@ dirtyjson==1.0.8
|
||||||
# via llama-index-core
|
# via llama-index-core
|
||||||
distro==1.9.0
|
distro==1.9.0
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# openai
|
# openai
|
||||||
filelock==3.15.4
|
filelock==3.15.4
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# huggingface-hub
|
# huggingface-hub
|
||||||
# torch
|
# torch
|
||||||
# transformers
|
# transformers
|
||||||
frozenlist==1.4.1
|
frozenlist==1.4.1
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# aiohttp
|
# aiohttp
|
||||||
# aiosignal
|
# aiosignal
|
||||||
fsspec==2024.6.1
|
fsspec==2024.6.1
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# huggingface-hub
|
# huggingface-hub
|
||||||
# llama-index-core
|
# llama-index-core
|
||||||
# torch
|
# torch
|
||||||
greenlet==3.0.3
|
greenlet==3.0.3
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# sqlalchemy
|
# sqlalchemy
|
||||||
h11==0.14.0
|
h11==0.14.0
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# httpcore
|
# httpcore
|
||||||
httpcore==1.0.5
|
httpcore==1.0.5
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# httpx
|
# httpx
|
||||||
httpx==0.27.0
|
httpx==0.27.0
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# llama-cloud
|
# llama-cloud
|
||||||
# llama-index-core
|
# llama-index-core
|
||||||
# openai
|
# openai
|
||||||
huggingface-hub[inference]==0.23.4
|
huggingface-hub[inference]==0.23.4
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# llama-index-embeddings-huggingface
|
# llama-index-embeddings-huggingface
|
||||||
# sentence-transformers
|
# sentence-transformers
|
||||||
# tokenizers
|
# tokenizers
|
||||||
# transformers
|
# transformers
|
||||||
idna==3.7
|
idna==3.7
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# anyio
|
# anyio
|
||||||
# httpx
|
# httpx
|
||||||
# requests
|
# requests
|
||||||
# yarl
|
# yarl
|
||||||
jinja2==3.1.4
|
jinja2==3.1.4
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# torch
|
# torch
|
||||||
joblib==1.4.2
|
joblib==1.4.2
|
||||||
# via
|
# via
|
||||||
|
@ -111,13 +111,13 @@ llama-cloud==0.0.6
|
||||||
# via llama-index-core
|
# via llama-index-core
|
||||||
llama-index-core==0.10.52.post2
|
llama-index-core==0.10.52.post2
|
||||||
# via
|
# via
|
||||||
# -r requirements-hf-embed.in
|
# -r requirements/requirements-hf-embed.in
|
||||||
# llama-index-embeddings-huggingface
|
# llama-index-embeddings-huggingface
|
||||||
llama-index-embeddings-huggingface==0.2.2
|
llama-index-embeddings-huggingface==0.2.2
|
||||||
# via -r requirements-hf-embed.in
|
# via -r requirements/requirements-hf-embed.in
|
||||||
markupsafe==2.1.5
|
markupsafe==2.1.5
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# jinja2
|
# jinja2
|
||||||
marshmallow==3.21.3
|
marshmallow==3.21.3
|
||||||
# via dataclasses-json
|
# via dataclasses-json
|
||||||
|
@ -127,7 +127,7 @@ mpmath==1.3.0
|
||||||
# via sympy
|
# via sympy
|
||||||
multidict==6.0.5
|
multidict==6.0.5
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# aiohttp
|
# aiohttp
|
||||||
# yarl
|
# yarl
|
||||||
mypy-extensions==1.0.0
|
mypy-extensions==1.0.0
|
||||||
|
@ -136,14 +136,14 @@ nest-asyncio==1.6.0
|
||||||
# via llama-index-core
|
# via llama-index-core
|
||||||
networkx==3.2.1
|
networkx==3.2.1
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# llama-index-core
|
# llama-index-core
|
||||||
# torch
|
# torch
|
||||||
nltk==3.8.1
|
nltk==3.8.1
|
||||||
# via llama-index-core
|
# via llama-index-core
|
||||||
numpy==1.26.4
|
numpy==1.26.4
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# llama-index-core
|
# llama-index-core
|
||||||
# pandas
|
# pandas
|
||||||
# scikit-learn
|
# scikit-learn
|
||||||
|
@ -152,55 +152,49 @@ numpy==1.26.4
|
||||||
# transformers
|
# transformers
|
||||||
openai==1.35.10
|
openai==1.35.10
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# llama-index-core
|
# llama-index-core
|
||||||
packaging==24.1
|
packaging==24.1
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# huggingface-hub
|
# huggingface-hub
|
||||||
# marshmallow
|
# marshmallow
|
||||||
# transformers
|
# transformers
|
||||||
pandas==2.2.2
|
pandas==2.2.2
|
||||||
# via
|
# via llama-index-core
|
||||||
# -c requirements.txt
|
|
||||||
# llama-index-core
|
|
||||||
pillow==10.4.0
|
pillow==10.4.0
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# llama-index-core
|
# llama-index-core
|
||||||
# sentence-transformers
|
# sentence-transformers
|
||||||
pydantic==2.8.2
|
pydantic==2.8.2
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# llama-cloud
|
# llama-cloud
|
||||||
# openai
|
# openai
|
||||||
pydantic-core==2.20.1
|
pydantic-core==2.20.1
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# pydantic
|
# pydantic
|
||||||
python-dateutil==2.9.0.post0
|
python-dateutil==2.9.0.post0
|
||||||
# via
|
# via pandas
|
||||||
# -c requirements.txt
|
|
||||||
# pandas
|
|
||||||
pytz==2024.1
|
pytz==2024.1
|
||||||
# via
|
# via pandas
|
||||||
# -c requirements.txt
|
|
||||||
# pandas
|
|
||||||
pyyaml==6.0.1
|
pyyaml==6.0.1
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# huggingface-hub
|
# huggingface-hub
|
||||||
# llama-index-core
|
# llama-index-core
|
||||||
# transformers
|
# transformers
|
||||||
regex==2024.5.15
|
regex==2024.5.15
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# nltk
|
# nltk
|
||||||
# tiktoken
|
# tiktoken
|
||||||
# transformers
|
# transformers
|
||||||
requests==2.32.3
|
requests==2.32.3
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# huggingface-hub
|
# huggingface-hub
|
||||||
# llama-index-core
|
# llama-index-core
|
||||||
# tiktoken
|
# tiktoken
|
||||||
|
@ -211,18 +205,16 @@ scikit-learn==1.5.1
|
||||||
# via sentence-transformers
|
# via sentence-transformers
|
||||||
scipy==1.13.1
|
scipy==1.13.1
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# scikit-learn
|
# scikit-learn
|
||||||
# sentence-transformers
|
# sentence-transformers
|
||||||
sentence-transformers==3.0.1
|
sentence-transformers==3.0.1
|
||||||
# via llama-index-embeddings-huggingface
|
# via llama-index-embeddings-huggingface
|
||||||
six==1.16.0
|
six==1.16.0
|
||||||
# via
|
# via python-dateutil
|
||||||
# -c requirements.txt
|
|
||||||
# python-dateutil
|
|
||||||
sniffio==1.3.1
|
sniffio==1.3.1
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# anyio
|
# anyio
|
||||||
# httpx
|
# httpx
|
||||||
# openai
|
# openai
|
||||||
|
@ -233,24 +225,22 @@ sqlalchemy[asyncio]==2.0.31
|
||||||
sympy==1.13.0
|
sympy==1.13.0
|
||||||
# via torch
|
# via torch
|
||||||
tenacity==8.4.2
|
tenacity==8.4.2
|
||||||
# via
|
# via llama-index-core
|
||||||
# -c requirements.txt
|
|
||||||
# llama-index-core
|
|
||||||
threadpoolctl==3.5.0
|
threadpoolctl==3.5.0
|
||||||
# via scikit-learn
|
# via scikit-learn
|
||||||
tiktoken==0.7.0
|
tiktoken==0.7.0
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# llama-index-core
|
# llama-index-core
|
||||||
tokenizers==0.19.1
|
tokenizers==0.19.1
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# transformers
|
# transformers
|
||||||
torch==2.2.2
|
torch==2.2.2
|
||||||
# via sentence-transformers
|
# via sentence-transformers
|
||||||
tqdm==4.66.4
|
tqdm==4.66.4
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# huggingface-hub
|
# huggingface-hub
|
||||||
# llama-index-core
|
# llama-index-core
|
||||||
# nltk
|
# nltk
|
||||||
|
@ -261,7 +251,7 @@ transformers==4.42.3
|
||||||
# via sentence-transformers
|
# via sentence-transformers
|
||||||
typing-extensions==4.12.2
|
typing-extensions==4.12.2
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# huggingface-hub
|
# huggingface-hub
|
||||||
# llama-index-core
|
# llama-index-core
|
||||||
# openai
|
# openai
|
||||||
|
@ -275,12 +265,10 @@ typing-inspect==0.9.0
|
||||||
# dataclasses-json
|
# dataclasses-json
|
||||||
# llama-index-core
|
# llama-index-core
|
||||||
tzdata==2024.1
|
tzdata==2024.1
|
||||||
# via
|
# via pandas
|
||||||
# -c requirements.txt
|
|
||||||
# pandas
|
|
||||||
urllib3==2.2.2
|
urllib3==2.2.2
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# requests
|
# requests
|
||||||
wrapt==1.16.0
|
wrapt==1.16.0
|
||||||
# via
|
# via
|
||||||
|
@ -288,5 +276,5 @@ wrapt==1.16.0
|
||||||
# llama-index-core
|
# llama-index-core
|
||||||
yarl==1.9.4
|
yarl==1.9.4
|
||||||
# via
|
# via
|
||||||
# -c requirements.txt
|
# -c requirements/../requirements.txt
|
||||||
# aiohttp
|
# aiohttp
|
|
@ -22,15 +22,22 @@ diff-match-patch
|
||||||
playwright
|
playwright
|
||||||
pypandoc
|
pypandoc
|
||||||
litellm
|
litellm
|
||||||
google-generativeai
|
|
||||||
streamlit
|
|
||||||
watchdog
|
|
||||||
flake8
|
flake8
|
||||||
importlib_resources
|
importlib_resources
|
||||||
|
|
||||||
# v3.3 no longer works on python 3.9
|
# The proper depdendency is networkx[default], but this brings
|
||||||
|
# in matplotlib and a bunch of other deps
|
||||||
|
# https://github.com/networkx/networkx/blob/d7132daa8588f653eacac7a5bae1ee85a183fa43/pyproject.toml#L57
|
||||||
|
# We really only need networkx itself and scipy for the repomap.
|
||||||
|
# Pin below v3.3 to retain python 3.9 compatibility.
|
||||||
networkx<3.3
|
networkx<3.3
|
||||||
|
|
||||||
|
# This is the one networkx dependency that we need.
|
||||||
|
# Including it here explicitly because we
|
||||||
|
# didn't specify networkx[default] above.
|
||||||
|
# Pin below 1.14 to retain python 3.9 compatibility.
|
||||||
|
scipy<1.14
|
||||||
|
|
||||||
# v0.22.2 seems to break tree-sitter-languages?
|
# v0.22.2 seems to break tree-sitter-languages?
|
||||||
tree-sitter==0.21.3
|
tree-sitter==0.21.3
|
||||||
|
|
||||||
|
@ -39,5 +46,3 @@ tree-sitter==0.21.3
|
||||||
# Uses importlib-metadata
|
# Uses importlib-metadata
|
||||||
importlib-metadata<8.0.0
|
importlib-metadata<8.0.0
|
||||||
|
|
||||||
# To retain python 3.9 compatibility
|
|
||||||
scipy<1.14
|
|
|
@ -3,7 +3,16 @@
|
||||||
# exit when any command fails
|
# exit when any command fails
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
pip-compile requirements.in $1
|
pip-compile \
|
||||||
pip-compile --output-file=requirements-dev.txt requirements-dev.in $1
|
requirements/requirements.in \
|
||||||
pip-compile --output-file=requirements-hf-embed.txt requirements-hf-embed.in $1
|
--output-file=requirements.txt \
|
||||||
|
$1
|
||||||
|
|
||||||
|
for SUFFIX in dev hf-embed browser; do
|
||||||
|
|
||||||
|
pip-compile \
|
||||||
|
requirements/requirements-${SUFFIX}.in \
|
||||||
|
--output-file=requirements/requirements-${SUFFIX}.txt \
|
||||||
|
$1
|
||||||
|
done
|
||||||
|
|
||||||
|
|
18
setup.py
18
setup.py
|
@ -1,4 +1,5 @@
|
||||||
import re
|
import re
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
from setuptools import find_packages, setup
|
from setuptools import find_packages, setup
|
||||||
|
|
||||||
|
@ -7,15 +8,21 @@ from aider.help_pats import exclude_website_pats
|
||||||
|
|
||||||
|
|
||||||
def get_requirements(suffix=""):
|
def get_requirements(suffix=""):
|
||||||
fname = "requirements" + suffix + ".txt"
|
if suffix:
|
||||||
with open(fname) as f:
|
fname = "requirements-" + suffix + ".txt"
|
||||||
requirements = f.read().splitlines()
|
fname = Path("requirements") / fname
|
||||||
|
else:
|
||||||
|
fname = Path("requirements.txt")
|
||||||
|
|
||||||
|
requirements = fname.read_text().splitlines()
|
||||||
|
|
||||||
return requirements
|
return requirements
|
||||||
|
|
||||||
|
|
||||||
requirements = get_requirements()
|
requirements = get_requirements()
|
||||||
dev_requirements = get_requirements("-dev")
|
dev_requirements = get_requirements("dev")
|
||||||
hf_requirements = get_requirements("-hf-embed")
|
hf_requirements = get_requirements("hf-embed")
|
||||||
|
browser_requirements = get_requirements("browser")
|
||||||
|
|
||||||
# README
|
# README
|
||||||
with open("README.md", "r", encoding="utf-8") as f:
|
with open("README.md", "r", encoding="utf-8") as f:
|
||||||
|
@ -41,6 +48,7 @@ setup(
|
||||||
extras_require={
|
extras_require={
|
||||||
"dev": dev_requirements,
|
"dev": dev_requirements,
|
||||||
"hf-embed": hf_requirements,
|
"hf-embed": hf_requirements,
|
||||||
|
"browser": browser_requirements,
|
||||||
},
|
},
|
||||||
python_requires=">=3.9,<3.13",
|
python_requires=">=3.9,<3.13",
|
||||||
entry_points={
|
entry_points={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue