Commit graph

1574 commits

Author SHA1 Message Date
Paul Gauthier
1eb9ab1b70 aider: Added regex to remove lines containing bullets with anchor links from long_description in setup.py.
# Context:
USER: also filter out the bullets which are just #anchor links to elsewhere in the readme
ASSISTANT: To filter out the bullets with anchor links in the `long_description` in `setup.py`, you can use a regular expression to remove the lines containing those links. Here's the change you need to make in `setup.py`:

```python
setup.py
<<<<<<< ORIGINAL
import re

with open("README.md", "r", encoding="utf-8") as f:
    long_description = f.read()
    long_description = re.sub(r'\n!\[.*\]\(.*\)', '', long_description)
=======
import re

with open("README.md", "r", encoding="utf-8") as f:
    long_description = f.read()
    long_description = re.sub(r'\n!\[.*\]\(.*\)', '', long_description)
    long_description = re.sub(r'\n- \[.*\]\(#.*\)', '', long_description)
>>>>>>> UPDATED
```

This change adds another `re.sub()` function to remove lines containing bullets with anchor links from the `long_description`.
2023-06-07 17:11:16 -07:00
Paul Gauthier
f8f2eb0f76 aider: Filtered out image links from long_description in setup.py.
# Context:
USER: pypi descriptions don't support markdown image links. filter out images before passing it
ASSISTANT: To filter out image links from the `long_description` in `setup.py`, you can use a regular expression to remove the lines containing image links. Here's the change you need to make in `setup.py`:

```python
setup.py
<<<<<<< ORIGINAL
with open("README.md", "r", encoding="utf-8") as f:
    long_description = f.read()
=======
import re

with open("README.md", "r", encoding="utf-8") as f:
    long_description = f.read()
    long_description = re.sub(r'\n!\[.*\]\(.*\)', '', long_description)
>>>>>>> UPDATED
```

This change imports the `re` module and uses the `re.sub()` function to remove lines containing image links from the `long_description`.
2023-06-07 16:59:35 -07:00
Paul Gauthier
ece1cdd557 aider: Updated the setup.py to use the README.md as the long description source.
# Context:
USER: update the `setup.py` to use README.md as the long description source
ASSISTANT: To update the `setup.py` to use the `README.md` as the long description source, follow these steps:

1. Read the contents of the `README.md` file and store it in a variable.
2. Add the `long_description` and `long_description_content_type` arguments to the `setup()` function.

Here's the updated `setup.py`:

```python
setup.py
<<<<<<< ORIGINAL
from setuptools import find_packages, setup

with open("requirements.txt") as f:
    requirements = f.read().splitlines()

setup(
    name="aider-chat",
    version="0.5.0",
    packages=find_packages(),
    install_requires=requirements,
    entry_points={
        "console_scripts": [
            "aider = aider.main:main",
        ],
    },
)
=======
from setuptools import find_packages, setup

with open("requirements.txt") as f:
    requirements = f.read().splitlines()

with open("README.md", "r", encoding="utf-8") as f:
    long_description = f.read()

setup(
    name="aider-chat",
    version="0.5.0",
    packages=find_packages(),
    install_requires=requirements,
    entry_points={
        "console_scripts": [
            "aider = aider.main:main",
        ],
    },
    long_description=long_description,
    long_description_content_type="text/markdown",
)
>>>>>>> UPDATED
```
2023-06-07 16:56:24 -07:00
Paul Gauthier
d65e782e80 Changed package name aider -> aider-chat 2023-06-07 16:43:46 -07:00
Paul Gauthier
07c5c7f477 Update debugging main in repomap 2023-06-07 14:57:57 -07:00
Paul Gauthier
85a14309ca bump version 2023-06-07 13:53:04 -07:00
Paul Gauthier
587261ef12 added adier/models.py 2023-06-07 13:14:55 -07:00
Paul Gauthier
31c7274639 no bash markup 2023-06-07 13:12:49 -07:00
Paul Gauthier
de9868063b Updated README 2023-06-07 13:11:51 -07:00
Paul Gauthier
9ac8a60f5f Finish support for gpt-4-32k 2023-06-07 12:42:43 -07:00
Paul Gauthier
571896f0bd Added gpt-4-32k 2023-06-07 12:39:56 -07:00
Paul Gauthier
b70f8ea7bc Use models...max_context_tokens 2023-06-07 12:37:10 -07:00
Paul Gauthier
a874d617d3 rename 2023-06-07 12:29:51 -07:00
Paul Gauthier
9cef379abd refac 2023-06-07 12:28:45 -07:00
paul-gauthier
70b981029c
Update README.md 2023-06-07 10:32:12 -07:00
Paul Gauthier
2149eaceab copy 2023-06-07 09:39:28 -07:00
Paul Gauthier
3ab59252c8 copy 2023-06-07 09:38:28 -07:00
Paul Gauthier
68cbd3a968 copy 2023-06-07 09:37:49 -07:00
Paul Gauthier
96104d6281 copy 2023-06-07 09:37:10 -07:00
Paul Gauthier
eb48a0f589 copy 2023-06-07 09:35:32 -07:00
Paul Gauthier
c8216d9687 No need to force show_diffs=True for 3.5 2023-06-06 18:17:39 -07:00
Paul Gauthier
99c86ccddf aider: Updated diff_partial_update function to include 5 lines of context in unified_diff function call.
# Context:
USER: expand the context diff to 5 lines of context
ASSISTANT: To expand the context diff to 5 lines of context, you need to modify the `diff_partial_update` function in the `aider/diffs.py` file. Update the `unified_diff` function call to include the `n` parameter with a value of 5.

Here's the change:

```python
aider/diffs.py
<<<<<<< ORIGINAL
    diff = difflib.unified_diff(lines_orig, lines_updated)
=======
    diff = difflib.unified_diff(lines_orig, lines_updated, n=5)
>>>>>>> UPDATED
```
2023-06-06 18:13:36 -07:00
Paul Gauthier
00f2fb9bf6 copy 2023-06-06 14:05:06 -07:00
Paul Gauthier
74b1bc9f68 copy 2023-06-06 14:04:29 -07:00
Paul Gauthier
1bd321742b copy 2023-06-06 14:02:38 -07:00
Paul Gauthier
34e764bbf5 copy 2023-06-06 13:04:50 -07:00
Paul Gauthier
dbeed906ad copy 2023-06-06 13:04:21 -07:00
Paul Gauthier
4753db6eac copy 2023-06-06 12:50:18 -07:00
Paul Gauthier
261419ae5b copy 2023-06-06 12:49:47 -07:00
Paul Gauthier
7cf952c328 copy 2023-06-06 12:31:42 -07:00
paul-gauthier
eaba38bb5e
Update README.md 2023-06-06 11:40:55 -07:00
Paul Gauthier
70296cb330 copy 2023-06-06 10:56:40 -07:00
Paul Gauthier
b7e7207967 copy 2023-06-06 10:55:28 -07:00
Paul Gauthier
f1a0db0475 copy 2023-06-06 10:51:33 -07:00
Paul Gauthier
9b4a6b7f49 copy 2023-06-06 10:48:50 -07:00
Paul Gauthier
f61e07dc02 copy 2023-06-06 10:48:28 -07:00
Paul Gauthier
18e3a4e202 copy 2023-06-06 08:55:08 -07:00
Paul Gauthier
11e4de3ea7 copy 2023-06-06 08:54:46 -07:00
Paul Gauthier
c314f08d6e copy 2023-06-06 08:51:28 -07:00
Paul Gauthier
ebf4954697 copy 2023-06-06 08:46:25 -07:00
Paul Gauthier
31cf0310d9 copy 2023-06-06 08:45:13 -07:00
Paul Gauthier
1faef90841 copy 2023-06-06 07:29:47 -07:00
Paul Gauthier
16daa3615d copy 2023-06-06 07:29:06 -07:00
Paul Gauthier
de0df5e7b1 fixed bug in check_model_availability 2023-06-06 07:28:12 -07:00
Paul Gauthier
1ceeecddca Updated README for 3.5 2023-06-06 06:45:27 -07:00
Paul Gauthier
8f70f1b251 renamed 2023-06-05 22:34:44 -07:00
Paul Gauthier
05c08b36a7 move cur_messages->done_messages, even with --no-auto-commit 2023-06-05 22:30:52 -07:00
Paul Gauthier
8abff61aff better handle malformed file block 2023-06-05 22:23:06 -07:00
Paul Gauthier
2f5f8561b5 prompt 2023-06-05 22:19:51 -07:00
Paul Gauthier
c44cc12b42 The --no-auto-commits flag implies --no-dirty-commits 2023-06-05 22:13:20 -07:00