Commit graph

659 commits

Author SHA1 Message Date
Paul Gauthier
c9fdf8c896 copy 2023-05-13 12:35:05 -07:00
Paul Gauthier
ba02df8f47 copy 2023-05-13 12:34:49 -07:00
Paul Gauthier
d6738637b5 copy 2023-05-13 12:32:57 -07:00
Paul Gauthier
8938b8f2a8 copy 2023-05-13 12:31:36 -07:00
Paul Gauthier
e6b1d11fa7 copy 2023-05-13 12:30:56 -07:00
Paul Gauthier
c3eaac17d3 copy 2023-05-13 12:28:49 -07:00
Paul Gauthier
189bfa482e copy 2023-05-13 12:28:28 -07:00
Paul Gauthier
0b91e02782 copy 2023-05-13 12:26:48 -07:00
Paul Gauthier
f6387eec6a copy 2023-05-13 12:26:00 -07:00
Paul Gauthier
628bb5ec72 copy 2023-05-13 12:24:47 -07:00
Paul Gauthier
1e7c39a73b copy 2023-05-13 12:24:28 -07:00
Paul Gauthier
7aabd61b86 copy 2023-05-13 12:24:01 -07:00
Paul Gauthier
0eb845b620 copy 2023-05-13 12:22:18 -07:00
Paul Gauthier
b386637c17 copy 2023-05-13 12:13:24 -07:00
Paul Gauthier
9b35a3e649 copy 2023-05-13 12:12:54 -07:00
Paul Gauthier
22ad1d906c copy 2023-05-13 12:12:31 -07:00
Paul Gauthier
0de32628f5 copy 2023-05-13 12:12:00 -07:00
Paul Gauthier
1dadfd9933 copy 2023-05-13 12:11:45 -07:00
Paul Gauthier
03ef18dee9 copy 2023-05-13 12:11:03 -07:00
Paul Gauthier
d3f7ec9020 copy 2023-05-13 12:10:51 -07:00
Paul Gauthier
b1c7c66a5e copy 2023-05-13 12:10:02 -07:00
Paul Gauthier
10a0a0bca0 copy 2023-05-13 12:07:40 -07:00
Paul Gauthier
909412c652 copy 2023-05-13 12:07:12 -07:00
Paul Gauthier
66dcbf3fbb copy 2023-05-13 12:04:04 -07:00
Paul Gauthier
3f932ce141 copy 2023-05-13 12:01:21 -07:00
Paul Gauthier
a61312630e copy 2023-05-13 12:00:25 -07:00
Paul Gauthier
3aa5db2bfa copy 2023-05-13 12:00:09 -07:00
Paul Gauthier
62abd9c202 copy 2023-05-13 11:58:06 -07:00
Paul Gauthier
d87b6f39c4 copy 2023-05-13 11:58:00 -07:00
Paul Gauthier
090ef0acd8 copy 2023-05-13 11:57:36 -07:00
Paul Gauthier
c087d6b4db copy 2023-05-13 11:52:49 -07:00
Paul Gauthier
50cef950cd copy 2023-05-13 11:52:28 -07:00
Paul Gauthier
53d9ff00b4 copy 2023-05-13 11:52:09 -07:00
Paul Gauthier
df9a3b3df6 copy 2023-05-13 11:51:25 -07:00
Paul Gauthier
cf1a1b92e1 copy 2023-05-13 11:47:12 -07:00
Paul Gauthier
e288cede8f copy 2023-05-13 10:50:17 -07:00
Paul Gauthier
f69525e573 copy 2023-05-13 10:31:46 -07:00
Paul Gauthier
04565b9181 wip: Changed the help message for using gpt-3.5-turbo model and updated the example docs. 2023-05-13 10:31:21 -07:00
Paul Gauthier
d1ae23be46 copy 2023-05-13 10:28:10 -07:00
Paul Gauthier
0436e1e76e Updated example names in README.md. 2023-05-13 10:27:29 -07:00
Paul Gauthier
337cfbd36a aider: Added an example demonstrating how to automatically update docs with Aider and GPT-4.
# Context:
USER: add the upd docs example to the readme
ASSISTANT: ```markdown
examples/README.md
<<<<<<< ORIGINAL
* [**CSS Exercise: Animation Dropdown Menu**](css-exercises.md): This example demonstrates how to complete a CSS exercise involving adding animation to a dropdown menu, creating a bounce illusion when the dropdown expands close to its final end state.
=======
* [**CSS Exercise: Animation Dropdown Menu**](css-exercises.md): This example demonstrates how to complete a CSS exercise involving adding animation to a dropdown menu, creating a bounce illusion when the dropdown expands close to its final end state.

* [**Automatically Update Docs with Aider and GPT-4**](update-docs.md): This example demonstrates how to use aider to automatically update documentation based on the latest version of the main() function in the code.
>>>>>>> UPDATED
```
2023-05-13 10:27:08 -07:00
Paul Gauthier
38a3b4309b Added update-docs example 2023-05-13 10:26:29 -07:00
Paul Gauthier
024f45e52f aider: Updated command line arguments in main() and updated README.md to accurately describe them.
# Context:
USER: the cmd line args in main() have been updated. update the readme.
ASSISTANT: ```markdown
README.md
<<<<<<< ORIGINAL
    parser.add_argument(
        "--input-history-file",
        metavar="INPUT_HISTORY_FILE",
        default=os.environ.get(f"{env_prefix}INPUT_HISTORY_FILE", ".aider.input.history"),
        help=(
            "Specify the chat input history file (default: .a
^C KeyboardInterrupt
USER: the cmd line args in main() have been updated. update the readme to accurately describe them.
ASSISTANT: ```markdown
README.md
<<<<<<< ORIGINAL
- `--history-file HISTORY_FILE`: Specify the chat input history file (default: .aider.history). Override the default with the environment variable `AIDER_HISTORY_FILE`.
- `--model MODEL`: Specify the model to use for the main chat (default: gpt-4). Override the default with the environment variable `AIDER_MODEL`.
- `-3`: Use gpt-3.5-turbo model for the main chat (basically won't work). No environment variable override.
- `--no-pretty`: Disable pretty, colorized output. Override the default with the environment variable `AIDER_PRETTY` (default: 1 for enabled, 0 for disabled).
- `--show-diffs`: Show diffs when committing changes (default: False). Override the default with the environment variable `AIDER_SHOW_DIFFS` (default: 0 for False, 1 for True).
- `--no-auto-commits`: Disable auto commit of changes. Override the default with the environment variable `AIDER_AUTO_COMMITS` (default: 1 for enabled, 0 for disabled).
=======
- `--input-history-file INPUT_HISTORY_FILE`: Specify the chat input history file (default: .aider.input.history). Override the default with the environment variable `AIDER_INPUT_HISTORY_FILE`.
- `--chat-history-file CHAT_HISTORY_FILE`: Specify the chat history file (default: .aider.chat.history.md). Override the default with the environment variable `AIDER_CHAT_HISTORY_FILE`.
- `--model MODEL`: Specify the model to use for the main chat (default: gpt-4). Override the default with the environment variable `AIDER_MODEL`.
- `-3`: Use gpt-3.5-turbo model for the main chat (basically won't work). No environment variable override.
- `--no-pretty`: Disable pretty, colorized output. Override the default with the environment variable `AIDER_PRETTY` (default: 1 for enabled, 0 for disabled).
- `--apply FILE`: Apply the changes from the given file instead of running the chat (debug).
- `--no-auto-commits`: Disable auto commit of changes. Override the default with the environment variable `AIDER_AUTO_COMMITS` (default: 1 for enabled, 0 for disabled).
- `--show-diffs`: Show diffs when committing changes (default: False). Override the default with the environment variable `AIDER_SHOW_DIFFS` (default: 0 for False, 1 for True).
- `--yes`: Always say yes to every confirmation (default: False).
>>>>>>> UPDATED
```
2023-05-13 10:23:41 -07:00
Paul Gauthier
43f045f24f copy 2023-05-13 10:18:53 -07:00
Paul Gauthier
5a9446aa24 copy 2023-05-13 10:17:44 -07:00
Paul Gauthier
c71d98ff82 cop 2023-05-13 10:15:56 -07:00
Paul Gauthier
fb319fe4d3 wip: Added notes to diffs about user adding main.py file and interrupting response. 2023-05-13 10:11:38 -07:00
Paul Gauthier
0110f86c7f wip: Added KeyboardInterrupt error message to coder.py. 2023-05-13 10:10:00 -07:00
Paul Gauthier
ffbbccd51d Commit 919cfc2: Replaced all self.console.print() calls with self.io.tool_error() calls with [red] removed from the string. 2023-05-13 10:04:19 -07:00
Paul Gauthier
eb4a1f5341 aider: Added the word "Commit" before each commit hash.
# Context:
USER: Add the word "Commit" before each commit hash
ASSISTANT: To add the word "Commit" before each commit hash, I will update the commit messages in the previous response. Here are the updated commit messages:

```plaintext
examples/hello-world-flask.md
<<<<<<< ORIGINAL
_Applied edit to app.py_
_414c394 aider: Added a `/hello` endpoint that returns "Hello, World!" to the Flask app._
=======
_Applied edit to app.py_
Commit 414c394 aider: Added a `/hello` endpoint that returns "Hello, World!" to the Flask app._
>>>>>>> UPDATED
```

^C KeyboardInterrupt
USER: keep the leading _ for italics
ASSISTANT: I apologize for the confusion. Here are the updated commit messages with the word "Commit" added before each commit hash while keeping the leading underscores for italics:

```plaintext
examples/hello-world-flask.md
<<<<<<< ORIGINAL
_Applied edit to app.py_
_414c394 aider: Added a `/hello` endpoint that returns "Hello, World!" to the Flask app._
=======
_Applied edit to app.py_
_Commit 414c394 aider: Added a `/hello` endpoint that returns "Hello, World!" to the Flask app._
>>>>>>> UPDATED
```

```plaintext
examples/hello-world-flask.md
<<<<<<< ORIGINAL
_Applied edit to app.py_
_0872c51 aider: Added an endpoint `/add/<int:num1>/<int:num2>` that returns the sum of the two numbers._
=======
_Applied edit to app.py_
_Commit 0872c51 aider: Added an endpoint `/add/<int:num1>/<int:num2>` that returns the sum of the two numbers._
>>>>>>> UPDATED
```

```plaintext
examples/hello-world-flask.md
<<<<<<< ORIGINAL
_Applied edit to app.py_
_163fba8 aider: Added a `/fibonacci/X` endpoint that returns the Xth number in the Fibonacci sequence._
=======
_Applied edit to app.py_
_Commit 163fba8 aider: Added a `/fibonacci/X` endpoint that returns the Xth number in the Fibonacci sequence._
>>>>>>> UPDATED
```

```plaintext
examples/hello-world-flask.md
<<<<<<< ORIGINAL
_Applied edit to app.py_
_eab6620 aider: Removed the `/hello` endpoint from the Flask app._
=======
_Applied edit to app.py_
_Commit eab6620 aider: Removed the `/hello` endpoint from the Flask app._
>>>>>>> UPDATED
```
2023-05-13 10:03:28 -07:00