Paul Gauthier
fd71b6a4a5
max_apply_update_errors = 1 for quick benchmark
2023-12-06 14:35:57 -08:00
Paul Gauthier
57ab2cc9da
Revert "implement deployment id"
...
This reverts commit b107db98fa
.
2023-12-06 09:20:53 -08:00
Paul Gauthier
b107db98fa
implement deployment id
2023-12-05 11:31:17 -08:00
Paul Gauthier
bf03f43b44
fixed benchmark
2023-12-05 11:21:11 -08:00
Paul Gauthier
23e6c4ee55
fixed test_coder
2023-12-05 10:51:50 -08:00
Paul Gauthier
fb07b784f6
move to gpt-3.5-turbo-1106
2023-12-05 10:28:27 -08:00
Paul Gauthier
6ebc142377
roughed in openai 1.x
2023-12-05 07:37:05 -08:00
Joshua Vial
91bbb0a02c
TODOs for making image code robust
2023-11-30 11:09:56 +13:00
Joshua Vial
d8f33a8124
Auto switch to gpt-4-vision-preview if image files added to context
2023-11-29 22:48:45 +13:00
Paul Gauthier
ec95cd2d76
allow longer conversation histories for models with larger context windows
2023-11-27 10:55:36 -08:00
Paul Gauthier
e771adbff5
Refactor model_ids to be sorted in check_model_availability function.
2023-11-21 14:08:17 -08:00
Paul Gauthier
bf6cd8294e
handle submodules (or other dirs) which are git tracked #336
2023-11-15 13:34:29 -08:00
Paul Gauthier
5d0e92296a
number -> numbered
2023-11-15 13:06:58 -08:00
Paul Gauthier
4aba307ebd
defend against no tokenizer
2023-11-14 13:09:50 -08:00
Paul Gauthier
9cbe114a74
positivity
2023-11-14 11:34:36 -08:00
Paul Gauthier
253354da98
stronger elide prompt
2023-11-14 11:16:39 -08:00
Paul Gauthier
60ca8f8c0d
properly render the main sys prompt
2023-11-14 11:07:35 -08:00
Paul Gauthier
bbc174a8fb
just use the Rules as the reminder
2023-11-14 11:01:29 -08:00
Paul Gauthier
e0fea58276
Put back 2nd reminder
2023-11-14 10:46:16 -08:00
Paul Gauthier
26a340e21f
move the single format reminder into the top sys prompt
2023-11-14 10:38:39 -08:00
Paul Gauthier
df236e4dec
stronger prompt to include comments, docstrings
2023-11-14 10:30:02 -08:00
Paul Gauthier
3986da7210
just use a single S/R format system prompt
2023-11-14 10:25:08 -08:00
Paul Gauthier
c24a4a4392
refactor into Model.token_count()
2023-11-14 10:11:13 -08:00
Paul Gauthier
c63885fe8c
More rules, instructions
2023-11-13 15:28:01 -08:00
Paul Gauthier
8a3d4bf14c
added second example showing new file
2023-11-13 15:07:15 -08:00
Paul Gauthier
50f457d753
prompt with clear example using multiple S/R blocks on the same file
2023-11-13 14:59:19 -08:00
Paul Gauthier
87ab5495a7
Simplify scripting aider
2023-11-03 14:29:45 -07:00
Paul Gauthier
2609ec1b06
find_original_update_blocks now accepts fence param, raises on mangled <source>filename.ext #317
2023-11-02 12:05:39 -07:00
Paul Gauthier
f0711d4b96
Disable pretty when the fence is an html tag not triple-backticks
2023-11-02 10:52:55 -07:00
Paul Gauthier
b3bc8b0f2b
Ask for concise S/R blocks
2023-11-02 10:09:18 -07:00
Paul Gauthier
15d3a5d581
Switch from "edit block" to "search/replace block"
...
Succeeded in tricky task in the grep-ast codebase:
- checkout ed714ffe58734 / tricky-search-and-replace-state
- "read and parse .gitignore once, not each time we recurse `enumerate_files`"
- was having a lot of trouble creating a head/updated block that matched the actual source code
- new search/replace block does much better
Benchmark had *best* try 1 result and *lowest* num_error_outputs ever seen on gpt-4-0613.
Low num_error_outputs means it's less likely to elide/... code in the before block (original/search).
──────────── tmp.benchmarks/2023-10-25-22-03-19--search-and-replace-and-think ─────────────
test-cases: 133
model: gpt-4
edit_format: diff
commit_hash: c9c2ddb
num_error_outputs: 6
num_user_asks: 0
num_exhausted_context_windows 0
test_timeouts: 2
50.4% correct after try 0
66.2% correct after try 1
2023-10-25 15:24:03 -07:00
Paul Gauthier
3299d90317
Handle successive editblocks from same file w/o filename #267
2023-10-22 11:28:22 -07:00
Paul Gauthier
7871186e0f
Stronger prompt to include file path
2023-10-22 11:18:41 -07:00
Paul Gauthier
10b856e0af
cleanup
2023-10-18 15:18:12 -07:00
Paul Gauthier
2c98ea4448
Merge branch 'main' into sitter-map
2023-10-18 15:04:55 -07:00
Paul Gauthier
9725b236a3
roughed in .aiderignore
2023-10-18 10:26:43 -07:00
Paul Gauthier
364a3f70e9
Be careful to set done_messages=[] not None #273
2023-10-17 16:41:05 -07:00
Paul Gauthier
545f10551e
Show supported models when avail check fails
2023-09-29 09:20:36 -07: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
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
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
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
1334392418
lint
2023-09-01 15:53:19 -07:00
Paul Gauthier
0de722a7b3
lint
2023-09-01 15:52:56 -07:00
Paul Gauthier
fa6ae80653
Merge branch 'main' into sitter-map
2023-09-01 12:00:48 -07:00
Joshua Vial
abbc93678b
finishing openrouter integration
2023-08-23 21:26:27 +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