Paul Gauthier
e76d1c0cfa
accepts_multi_system_msgs -> reminder_as_sys_msg
2024-05-01 10:30:41 -07:00
Paul Gauthier
862c0dd0d7
stronger code base switch prompt
2024-05-01 09:40:47 -07:00
Paul Gauthier
1403d19aa7
Added example messages to wholefile edit format
2024-05-01 09:34:40 -07:00
Paul Gauthier
2c0dff52d3
asking for code language in whole edit format confuses some models
2024-05-01 09:17:29 -07:00
Paul Gauthier
0fb08896e3
Merge branch 'main' into gemini-editblock-and-examples
2024-05-01 09:02:08 -07:00
Paul Gauthier
7fd3b8aeee
Tell the AI we are switching code bases
2024-04-30 20:51:24 -07:00
Paul Gauthier
d51cada163
make the examples part of the chat
2024-04-30 20:45:49 -07:00
Paul Gauthier
22d90d70c6
prompt copy
2024-04-30 20:24:53 -07:00
Paul Gauthier
256a9a454c
move cloning into Coder.create, summarize chat history if edit format changes
2024-04-30 17:31:58 -07:00
Paul Gauthier
665b9044c8
added autocomplete for model names
2024-04-30 16:29:10 -07:00
Paul Gauthier
8e9a00006b
carry conversation history to switched model
2024-04-30 16:25:47 -07:00
Paul Gauthier
304856fc60
roughed in model switch
2024-04-30 16:22:13 -07:00
Paul Gauthier
050d35790e
added /models cmd
2024-04-30 16:02:38 -07:00
Paul Gauthier
e610e5bd0a
Handle existing dirnames with [globby] chars, with test #195
2024-04-30 15:50:24 -07:00
Paul Gauthier
a3a4d87a0c
treat litellm.exceptions.BadRequestError as a 400 error and do not retry
2024-04-30 15:40:28 -07:00
Paul Gauthier
3469e04eb8
Do exp backoff for litellm.exceptions.ServiceUnavailableError #580
2024-04-30 15:34:01 -07:00
Paul Gauthier
7b14d77e9e
Don't retry on gemini RECITATION error
2024-04-30 14:40:15 -07:00
Paul Gauthier
d38a38f0dd
implemented accepts_multi_system_msgs
2024-04-30 07:57:29 -07:00
Paul Gauthier
2d16ee16ac
Make lazy prompt configurable
2024-04-30 07:45:16 -07:00
Paul Gauthier
65dccb6205
Merge branch 'main' into gemini-editblock
2024-04-29 20:42:52 -07:00
Paul Gauthier
29f4d788a3
set streamlit config options
2024-04-29 10:19:22 -07:00
Paul Gauthier
3199a8f704
fix multiselect for 2nd,3rd,.. files
2024-04-29 06:24:14 -07:00
Paul Gauthier
b3225a4070
added warning
2024-04-28 15:18:53 -07:00
Paul Gauthier
ec9fac2500
simpler launch of streamlit
2024-04-28 14:48:40 -07:00
Paul Gauthier
73bad5250b
hit control-c
2024-04-28 14:38:30 -07:00
Paul Gauthier
0bf45c2cf6
added favicon
2024-04-28 14:28:50 -07:00
Paul Gauthier
542c091cf3
Added --gui functionality
2024-04-28 14:08:25 -07:00
Paul Gauthier
d60b343274
layout
2024-04-28 13:44:04 -07:00
Paul Gauthier
d889dfc879
added args.py
2024-04-28 13:25:31 -07:00
Paul Gauthier
15a50a6afc
more refactor
2024-04-28 13:19:48 -07:00
Paul Gauthier
5a01ba70a6
refactored parser, args
2024-04-28 13:15:14 -07:00
Paul Gauthier
221ddbb9ea
cleanup unimplemented UI
2024-04-28 12:43:22 -07:00
Paul Gauthier
ca6349069c
noop
2024-04-28 12:38:25 -07:00
Paul Gauthier
81b0415a90
info dict messages->content
2024-04-28 07:27:38 -07:00
Paul Gauthier
c0fec1d6ac
persist the announce lines
2024-04-28 07:24:46 -07:00
Paul Gauthier
0f8efa3714
Coder.drop_rel_fname
2024-04-28 07:15:48 -07:00
Paul Gauthier
bfd9398f28
persist file add/drop messages
2024-04-28 07:12:46 -07:00
Paul Gauthier
ce5abf8c79
working undo
2024-04-27 16:47:07 -07:00
Paul Gauthier
d0d5326228
roughed in undo
2024-04-27 16:00:10 -07:00
Paul Gauthier
f822fd0554
put web content into a text box
2024-04-27 15:52:14 -07:00
Paul Gauthier
355e072de8
refactored self.prompt
2024-04-27 15:44:10 -07:00
Paul Gauthier
dcb6100ce9
Add web page
2024-04-27 15:28:08 -07:00
Paul Gauthier
6e5e195ea8
resend recent msg
2024-04-27 14:40:44 -07:00
Paul Gauthier
640d321b3e
aider: Removed duplicates from the input history while preserving their order.
...
# Aider chat conversation:
USER: do the todo
ASSISTANT: To address the TODO comment in the code about making the `self.state.input_history` entries unique while keeping their order, we can modify the `initialize_state()` method in `aider/gui.py`.
Here are the changes:
aider/gui.py
```python
<<<<<<< SEARCH
if "input_history" not in self.state.keys:
self.state.input_history = list(self.coder.io.get_input_history())
# TODO: make self.state.input_history entries unique, but keep their order
=======
if "input_history" not in self.state.keys:
input_history = list(self.coder.io.get_input_history())
seen = set()
self.state.input_history = [x for x in input_history if not (x in seen or seen.add(x))]
>>>>>>> REPLACE
```
Explanation:
1. We first store the input history from `self.coder.io.get_input_history()` in a variable called `input_history`.
2. We create an empty set called `seen` to keep track of entries we've already processed.
3. We use a list comprehension to build `self.state.input_history`. For each item `x` in `input_history`:
- If `x` is not in `seen`, it's a new entry so we add it to `self.state.input_history` and add it to `seen`.
- If `x` is already in `seen`, it's a duplicate so we skip it.
This preserves the original order of the input history while removing any duplicate entries.
2024-04-27 14:36:49 -07:00
Paul Gauthier
0b853204e4
Improved chat history handling by clearing history, storing input history, and appending new prompts to the input history.
2024-04-27 14:36:47 -07:00
Paul Gauthier
fb8e604fbe
Clear chat history
2024-04-27 14:29:00 -07:00
Paul Gauthier
ddb8360608
Improved add/drop files
2024-04-27 14:13:23 -07:00
Paul Gauthier
e71cf03f36
self.coder.io.add_to_input_history
2024-04-27 13:55:44 -07:00
Paul Gauthier
0eb69716bc
simplify recent_msgs logic
2024-04-27 13:53:12 -07:00
Paul Gauthier
b4d1a0a2a2
state as a resource
2024-04-27 13:40:57 -07:00