Commit graph

2848 commits

Author SHA1 Message Date
Farhan Ahmad
e255b2f500 Removed .gitignore from repo 2023-09-18 14:41:46 -04:00
Farhan Ahmad
b7e3911afc aider: Updated the instructions for running the project locally.
# Aider chat conversation:

USER: update the instruction for running locally to include step by step instructions like cloning the repo / creating a fork. Switch to the correct directly. Install all the dependencies inside `requirements.txt` file using pip install -r. and finally running the program using python -m aider.main

ASSISTANT: To update the instructions for running the project locally, we need to modify the README.md file.

Here are the changes:

<source>markdown
README.md
<<<<<<< HEAD
## Running Locally

After cloning the repository or creating your fork, you can run the local version of Aider using the following command:

```
python -m aider.main
```
=======
## Running Locally

To run the project locally, follow these steps:

1. Clone the repository or create your fork:

```
git clone https://github.com/your-username/aider.git
```

2. Navigate to the project directory:

```
cd aider
```

3. Install the dependencies listed in the `requirements.txt` file:

```
pip install -r requirements.txt
```

4. Run the local version of Aider:

```
python -m aider.main
```
>>>>>>> updated
</source>
2023-09-16 15:45:46 -04:00
Farhan Ahmad
53c467ae88 Updated gitignore 2023-09-16 15:41:42 -04:00
Farhan Ahmad
8bac324b0f aider: Add instructions for running the project locally.
# Aider chat conversation:

USER: Update the readme to include instruction for running the project locally after closing the repo or creating your fork. Make sure to mention how you will go about running the local version aider by using the following command: python -m aider.main

ASSISTANT: To add instructions for running the project locally, we need to modify the README.md file.

Here are the changes:

<source>markdown
README.md
<<<<<<< HEAD
## Installation

See the [installation instructions](https://aider.chat/docs/install.html).
=======
## Installation

See the [installation instructions](https://aider.chat/docs/install.html).

## Running Locally

After cloning the repository or creating your fork, you can run the local version of Aider using the following command:

```
python -m aider.main
```
>>>>>>> updated
</source>
2023-09-16 15:40:05 -04:00
paul-gauthier
93184d1fc2
Merge pull request #250 from joshuavial/fix-benchmark 2023-09-08 17:18:21 -07:00
Joshua Vial
9a91d8fbad set git config safe dir in benchmark docker 2023-09-09 12:07:11 +12:00
paul-gauthier
e073d6901b
Merge pull request #234 from Taik/main 2023-09-08 17:07:02 -07:00
Joshua Vial
91b7648f33 update model creation method 2023-09-09 12:06:34 +12:00
Thinh Nguyen
2f835e9c46
Add default value for skip_model_availabily_check 2023-09-08 16:09:35 -07:00
Thinh Nguyen
45298f8af6
Add option to skip model availability check 2023-09-08 14:04:02 -07:00
Paul Gauthier
2a8c7ef70d set version to 0.14.1-dev 2023-09-08 09:54:43 -07:00
Paul Gauthier
f852bcabcd version bump to 0.14.0 2023-09-08 09:54:15 -07:00
Paul Gauthier
68e3d98f24 Updated HISTORY 2023-09-08 09:53:52 -07:00
Paul Gauthier
aee1338670 copy 2023-09-08 09:49:58 -07:00
Paul Gauthier
239fb92563 Merge remote-tracking branch 'origin/main' 2023-09-08 09:13:07 -07:00
Paul Gauthier
491993f979 Added a benchmarking readme 2023-09-08 09:12:34 -07:00
paul-gauthier
7ba70632e8
Merge pull request #244 from joshuavial/fix-openrouter-token-usage
only show token costs if usage exists
2023-09-08 08:37:09 -07:00
Paul Gauthier
ad3eeca80e Added __all__ to models/__init__ 2023-09-08 08:28:12 -07:00
Paul Gauthier
bfbd7b8416 Merge remote-tracking branch 'origin/main' 2023-09-08 08:26:23 -07:00
Joshua Vial
166984e94a only show token costs if usage exists 2023-09-08 11:49:41 +12:00
paul-gauthier
93ea45f588
Merge pull request #241 from joshuavial/fix-231 2023-09-06 16:29:03 -07:00
Joshua Vial
98097005c7 small fix for better error handling if the summarizer ever fails
- fix #231
2023-09-06 15:03:54 +12:00
Paul Gauthier
9b22b39a8d lint 2023-09-01 15:55:36 -07:00
Paul Gauthier
3045c5e94d aider: Removed unused imports and changed comparison to None to use is instead of == in aider/history.py, aider/models/__init__.py, and aider/models/openrouter.py.
# Aider chat conversation:

USER: I ran this command:

 pre-commit run --all-files

And got this output:

isort....................................................................Passed
black....................................................................Passed
flake8...................................................................Failed
- hook id: flake8
- exit code: 1

aider/history.py:4:1: F401 'tiktoken' imported but unused
import tiktoken
^
aider/models/__init__.py:2:1: F401 '.openai.OpenAIModel' imported but unused
from .openai import OpenAIModel
^
aider/models/__init__.py:3:1: F401 '.openrouter.OpenRouterModel' imported but unused
from .openrouter import OpenRouterModel
^
aider/models/openrouter.py:26:33: E711 comparison to None should be 'if cond is None:'
        if cached_model_details == None:
                                ^

ASSISTANT: It seems like there are some unused imports and a comparison to None that is not following the Pythonic way. To fix these issues, we need to modify the following files:

1. `aider/history.py`
2. `aider/models/__init__.py`
3. `aider/models/openrouter.py`

Please add these files to the chat so I can propose the necessary changes.

USER: I added these *read-write* files: aider/history.py, aider/models/openrouter.py, aider/models/__init__.py

ASSISTANT: Great! Now, let's make the necessary changes to these files.

First, in `aider/history.py`, we need to remove the unused import `tiktoken`.

```python
aider/history.py
<<<<<<< HEAD
import tiktoken
=======
>>>>>>> updated
```

Next, in `aider/models/__init__.py`, we need to remove the unused imports `OpenAIModel` and `OpenRouterModel`.

```python
aider/models/__init__.py
<<<<<<< HEAD
from .openai import OpenAIModel
from .openrouter import OpenRouterModel
=======
>>>>>>> updated
```

Finally, in `aider/models/openrouter.py`, we need to change the comparison to None to use `is` instead of `==`.

```python
aider/models/openrouter.py
<<<<<<< HEAD
        if cached_model_details == None:
=======
        if cached_model_details is None:
>>>>>>> updated
```

These changes should resolve the issues reported by the `flake8` linter.
2023-09-01 15:54:22 -07:00
Paul Gauthier
1334392418 lint 2023-09-01 15:53:19 -07:00
paul-gauthier
30a3cc0847
Merge pull request #199 from joshuavial/openrouter
Openrouter compatibility
2023-08-31 17:17:28 -07:00
Paul Gauthier
bcf4a55714 copy 2023-08-25 07:16:40 -07:00
Joshua Vial
6405193a95 docs for openrouter 2023-08-23 22:26:14 +12:00
Joshua Vial
0826e116da cleaning up openrouter code 2023-08-23 22:03:09 +12:00
Joshua Vial
668a0500ff test openrouter model properties 2023-08-23 21:50:00 +12:00
Joshua Vial
d1e0a196b5 Add test for creating models from OpenRouter API. 2023-08-23 21:32:00 +12:00
Joshua Vial
abbc93678b finishing openrouter integration 2023-08-23 21:26:27 +12:00
JV
1fc2abe3d0 save model to ChatSummary 2023-08-23 14:39:12 +12:00
JV
8fca0f27ee add caching of openrouter model details 2023-08-23 14:39:12 +12:00
JV
a39829c5f8 adding todo notes 2023-08-23 14:39:12 +12:00
JV
22f3349862 Refactored the code to use a global variable to store the OpenAI instance and added a helper function to determine the edit format for a given model. 2023-08-23 14:39:12 +12:00
JV
a0d6efc13c dynamically get pricing and context length for openrouter models 2023-08-23 14:39:12 +12:00
JV
041f3a4a38 initial code for working with openrouter 2023-08-23 14:39:12 +12:00
Paul Gauthier
8c580dd332 set version to 0.13.1-dev 2023-08-22 08:04:24 -07:00
Paul Gauthier
5eebde1d06 version bump to 0.13.0 2023-08-22 08:03:58 -07:00
Paul Gauthier
7e77a2b89f Updated HISTORY 2023-08-22 07:50:31 -07:00
Paul Gauthier
968095b36d Updated HISTORY 2023-08-22 07:45:17 -07:00
Paul Gauthier
e15b0b04d4 copy 2023-08-19 19:12:55 -07:00
Paul Gauthier
d7443e21b9 copy 2023-08-19 19:12:35 -07:00
Paul Gauthier
963bc83a9c Late-bind importing sounddevice, as it was slowing down aider startup 2023-08-19 15:18:46 -07:00
Paul Gauthier
4846317ef1 Merge remote-tracking branch 'origin/main' 2023-08-19 11:43:23 -07:00
Paul Gauthier
354b216bbe added /voice to docs 2023-08-19 11:42:56 -07:00
paul-gauthier
34159648d7
Update README.md 2023-08-19 08:46:39 -07:00
Paul Gauthier
b6a329c934 Updated HISTORY 2023-08-19 07:33:35 -07:00
Paul Gauthier
5c538327c3 update tests 2023-08-19 07:23:00 -07:00