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
Paul Gauthier
1c43722221
disable buttons when a prompt is pending
2024-04-27 13:23:40 -07:00
Paul Gauthier
296a336d22
yield from
2024-04-27 11:47:18 -07:00
Paul Gauthier
c32666b1c5
hide previous undo button during streaming
2024-04-27 11:27:16 -07:00
Paul Gauthier
1b6f038590
prettier edit message
2024-04-27 08:13:50 -07:00
Paul Gauthier
701103a9cc
chat works, with commits and reflected messages
2024-04-27 08:09:13 -07:00
Paul Gauthier
4c8d32601c
wired up fnames
2024-04-27 06:37:57 -07:00
Paul Gauthier
89a721b386
noop
2024-04-26 16:16:02 -07:00
Paul Gauthier
86d7705166
restructured reflected messages
2024-04-26 16:02:45 -07:00
Paul Gauthier
15e6651e09
stream to gui
2024-04-26 15:41:47 -07:00
Paul Gauthier
98d2997035
refac
2024-04-26 14:59:02 -07:00
Paul Gauthier
d549d5ecab
cleanup
2024-04-26 14:43:27 -07:00
Paul Gauthier
c3f48317c0
cleanup
2024-04-26 14:41:00 -07:00
Paul Gauthier
882e68c046
cleanup
2024-04-26 14:32:45 -07:00
Paul Gauthier
bf55573814
refac
2024-04-26 14:23:42 -07:00
Paul Gauthier
3f5cdb603c
fixed announcements
2024-04-26 13:20:14 -07:00
Paul Gauthier
d21de778ff
announcements
2024-04-26 11:24:42 -07:00
Paul Gauthier
0925c4b8b3
better
2024-04-26 06:13:40 -07:00
Paul Gauthier
e2d0a94d58
better
2024-04-26 06:12:07 -07:00
Paul Gauthier
7a6bce381e
better
2024-04-26 06:11:56 -07:00
Paul Gauthier
6ebfd15a71
initial
2024-04-25 11:35:26 -07:00
Paul Gauthier
4b68376695
set version to 0.30.2-dev
2024-04-24 17:20:51 -07:00
Paul Gauthier
d6bd563fc3
version bump to 0.30.1
2024-04-24 17:20:13 -07:00
Paul Gauthier
c6d6171da0
set version to 0.30.1-dev
2024-04-23 17:40:19 -07:00
Paul Gauthier
b14ca861c1
version bump to 0.30.0
2024-04-23 17:39:41 -07:00
Paul Gauthier
29eb2f4681
seems to work better
2024-04-23 14:06:08 -07:00
Paul Gauthier
f9e122b9d7
Added --show-model-warnings
2024-04-23 12:15:37 -07:00
Paul Gauthier
01cf038bb5
Quiet litellm
2024-04-23 10:37:43 -07:00
Paul Gauthier
f92aecbf7a
Allow repo map to work with whole edit format, for weaker models with large context
2024-04-23 10:21:54 -07:00
Paul Gauthier
341228b543
gemini benchmarked on whole so far
2024-04-23 09:53:27 -07:00
Paul Gauthier
9afa6e8435
Added gemini 1.5 pro
2024-04-23 09:49:48 -07:00
Paul Gauthier
c21118ce5c
Use provider in the validate_environment workaround
2024-04-23 06:28:37 -07:00
Paul Gauthier
89a7b3470a
Use fq model name in --models search
2024-04-22 19:17:27 -07:00
Paul Gauthier
25b8d6fec8
Added --models
2024-04-22 18:45:20 -07:00
Paul Gauthier
e2de881fb1
set version to 0.29.3-dev
2024-04-22 15:12:01 -07:00
Paul Gauthier
588c0157b3
version bump to 0.29.2
2024-04-22 15:11:25 -07:00
Paul Gauthier
da80e6af9e
Work around litellm bug
2024-04-22 15:00:53 -07:00
Paul Gauthier
6901f92f96
refac
2024-04-22 14:42:46 -07:00
Paul Gauthier
efd3c39e50
Better unknown model warnings
2024-04-22 14:09:08 -07:00
Paul Gauthier
21df025fb9
Use whole and other defaults for claude-2
2024-04-22 12:01:39 -07:00
Paul Gauthier
30c095349a
Don't assume gpt-3.5-turbo as the weak model, use main_model if unsure
2024-04-22 10:57:50 -07:00
Paul Gauthier
83c76a3c65
Don't stomp Model.name after a partial match against ModelSettings #568
2024-04-22 10:36:22 -07:00
Paul Gauthier
a9925d58af
Updated AZURE env assignments in main, docs
2024-04-22 09:45:06 -07:00
Paul Gauthier
e44ddf4981
set version to 0.29.2-dev
2024-04-22 07:13:48 -07:00