Commit graph

949 commits

Author SHA1 Message Date
Paul Gauthier
64dcfefbec avoid div by zero 2023-06-24 10:29:36 -07:00
Paul Gauthier
467a9cb587 more verbose 2023-06-24 08:40:19 -07:00
Paul Gauthier
86457b8097 Limit retries on bad update replies 2023-06-24 08:38:52 -07:00
Paul Gauthier
a1909611d9 Raise ValueError if gpt makes an unknown function_call 2023-06-24 08:32:12 -07:00
Paul Gauthier
cee0f528ab better 2023-06-24 07:24:41 -07:00
Paul Gauthier
7d2fc1b2d9 fixed bug in show_send_output(), more robust error handling/reporting 2023-06-24 07:24:04 -07:00
Paul Gauthier
99194e4051 Better stats for retry outcomes 2023-06-23 20:54:02 -07:00
Paul Gauthier
9e506cccb0 log with_message 2023-06-23 19:09:39 -07:00
Paul Gauthier
f23327ecf9 clearer repo-map initial message 2023-06-23 17:53:20 -07:00
Paul Gauthier
ae9ded4eaf No repo map if no repo 2023-06-23 16:10:48 -07:00
Paul Gauthier
50e715fb9a run pytest, cleanup 2023-06-23 15:40:14 -07:00
Paul Gauthier
200ff36848 Suppress Warning: no changes found in tracked files when no repo 2023-06-23 15:00:35 -07:00
Paul Gauthier
caf58cf313 fix support for --no-git 2023-06-23 14:49:30 -07:00
Paul Gauthier
d9b356de99 wip 2023-06-23 14:36:45 -07:00
Paul Gauthier
1b41bbd0d9 Assume a default main_model 2023-06-23 14:21:25 -07:00
Paul Gauthier
c21ef8dd92 more flexible multiline invocation 2023-06-23 14:00:22 -07:00
Paul Gauthier
b5b0c1cbc2 Added --no-git 2023-06-23 13:44:24 -07:00
Paul Gauthier
5c432592cd compute cost 2023-06-23 13:40:32 -07:00
Paul Gauthier
d2b9cb9e98 added --no-stream 2023-06-23 13:29:09 -07:00
Paul Gauthier
7e18fb7f5f Help for --cmd 2023-06-23 11:03:33 -07:00
Paul Gauthier
eceef49947 Use --cmd as short form 2023-06-23 11:02:19 -07:00
Paul Gauthier
a77e4419cc aider: Added a --command,-c option to specify the command to pass to coder.run().
# Context:
USER: add a --command,-c option which takes a string to pass to coder.run(with_message=args.command)
ASSISTANT: No changes are needed.
2023-06-23 11:01:05 -07:00
Paul Gauthier
dfdc6a382a /drop with no args drops all files 2023-06-23 10:14:51 -07:00
Paul Gauthier
f32580caf2 red if exhausted 2023-06-23 10:13:13 -07:00
Paul Gauthier
f9599f87a2 print -> tool_output 2023-06-23 10:12:19 -07:00
Paul Gauthier
803423cc6a prettier /tokens output 2023-06-23 10:10:45 -07:00
Paul Gauthier
949a633e95 Handle complete context blowout more gracefully 2023-06-23 10:01:01 -07:00
Paul Gauthier
fc6dd1877c Merge branch 'main' into edit-formats 2023-06-23 07:54:24 -07:00
Paul Gauthier
e261963acd fix for issue #25 2023-06-23 07:44:46 -07:00
Paul Gauthier
07ced21325 do not autocommit on dryrun 2023-06-22 19:22:53 -07:00
Paul Gauthier
15a0cdd6c9 aider: Added a --command,-c option to pass a string to coder.run().
# Context:
USER: add a --command,-c option which takes a string to pass to coder.run(with_message=args.command)
ASSISTANT: No changes are needed.
2023-06-22 19:02:22 -07:00
Paul Gauthier
cf3637dd5c roughed in run(with_message) 2023-06-22 18:55:23 -07:00
Paul Gauthier
208b3c2022 handle non-func replies 2023-06-22 18:33:22 -07:00
Paul Gauthier
4caec8dec1 reformat diff output header 2023-06-22 17:34:18 -07:00
Paul Gauthier
22a5e493a7 update files on the happy path 2023-06-22 17:32:34 -07:00
Paul Gauthier
82813d4159 rename modify_incremental_response -> render_incremental_response 2023-06-22 17:29:47 -07:00
Paul Gauthier
63f1c17a76 noop 2023-06-22 12:03:12 -07:00
Paul Gauthier
1c264eef67 noop 2023-06-22 12:03:04 -07:00
Paul Gauthier
8517681f02 Log the explanation to the chat history file 2023-06-22 12:01:34 -07:00
Paul Gauthier
3702ea3aa2 cleanup 2023-06-22 11:57:23 -07:00
Paul Gauthier
e8e2ea9d89 rename 2023-06-22 11:56:55 -07:00
Paul Gauthier
cc79f62498 repo_content_prefix = None in whole-func 2023-06-22 11:55:21 -07:00
Paul Gauthier
16a89fb5ab switch 3.5 models to use whole-func edit-format by default 2023-06-22 11:47:18 -07:00
Paul Gauthier
b5a92896ab Move the fname inside the unified diff block 2023-06-22 11:44:54 -07:00
Paul Gauthier
5043397848 respect --dry-run 2023-06-22 11:38:39 -07:00
Paul Gauthier
08764215c3 refac 2023-06-22 11:29:59 -07:00
Paul Gauthier
0f5264b196 renamed EditorPrompts -> CoderPrompts 2023-06-22 08:17:12 -07:00
Paul Gauthier
985e362544 renamed func -> wholefile_func 2023-06-22 08:15:20 -07:00
Paul Gauthier
4b69e2b85c fixed test 2023-06-21 21:33:51 -07:00
Paul Gauthier
e26acbae65 Make functions optional 2023-06-21 21:22:24 -07:00