Commit graph

1147 commits

Author SHA1 Message Date
Paul Gauthier (aider)
f0d02f2c76 style: Improve formatting of long string 2024-09-25 11:17:39 -07:00
Paul Gauthier (aider)
f8cef655f0 feat: Add junior model information to announcement for senior edit format 2024-09-25 11:17:34 -07:00
Paul Gauthier (aider)
6d19abf7ec fix: Remove unused import of Model from aider/coders/senior_coder.py 2024-09-25 11:04:48 -07:00
Paul Gauthier (aider)
e718b43fc8 style: Fix formatting in senior_coder.py 2024-09-25 11:04:39 -07:00
Paul Gauthier (aider)
a4aa88a440 feat: Adapt SeniorCoder to use Model.junior_model 2024-09-25 11:04:34 -07:00
Paul Gauthier
df8f57b628 feat: create a new junior coder with updated kwargs 2024-09-25 10:55:16 -07:00
Paul Gauthier
130c6f7308 fix: Prompt user to confirm file edits before proceeding 2024-09-25 10:29:58 -07:00
Paul Gauthier
26745426ae fix: Update SeniorCoder class to configure and run JuniorCoder with appropriate settings 2024-09-25 10:27:27 -07:00
Paul Gauthier
087dbb40a3 feat: Add SeniorCoder and update prompts 2024-09-25 10:23:31 -07:00
Paul Gauthier (aider)
095bae6513 fix: Remove unused import and fix undefined name in senior_coder.py 2024-09-25 09:54:54 -07:00
Paul Gauthier (aider)
95c70951fd fix: Remove unused import and import correct base class 2024-09-25 09:54:39 -07:00
Paul Gauthier (aider)
58c27e401e style: Fix import order in junior_whole_coder.py 2024-09-25 09:54:27 -07:00
Paul Gauthier (aider)
f2d60528f7 fix: Remove unused import and fix undefined name 2024-09-25 09:54:23 -07:00
Paul Gauthier
65e57df7ea feat: Implement changes to handle files content in Coder and prompts 2024-09-25 09:54:16 -07:00
Paul Gauthier
075bc828f6 stand alone junior message 2024-09-25 08:41:49 -07:00
Paul Gauthier
a9e9f9cdbe Merge branch 'main' into ask-plan-simple 2024-09-25 07:46:15 -07:00
paul-gauthier
0adb7e0fd3
Merge pull request #1590 from hypn4/main
feat: add `extra_body`field and use in model settings.
2024-09-24 13:16:38 -07:00
Paul Gauthier
117ff96c76 fix: Properly refactor mdstream from Coder into IO 2024-09-24 11:53:05 -07:00
hypn4
d0bce02c00 feat: add extra_bodyfield and use in model settings.
resolved: #1583

The `extra_body` field is a parameter used by the `openai` provider.

Since `litellm` also uses this field to additionally transmit `request body`, I added a function so that `aider` can also utilize the `extra_body` field.

The `openrouter` provider also supports various functions through the additional field of `request body`, so we added the function.

The following is how to use it in model settings.
```yaml
# .aider.model.settings.yml
- name: "openrouter/<YOUR_MODEL>"
  edit_format: "whole"
  use_repo_map: true
  extra_body:
    provider:
      order:
      - Azure
      allow_fallbacks: false
```
2024-09-23 20:37:10 +09:00
Paul Gauthier
54cfbc4142 handle ### filename.ext in whole format 2024-09-22 08:21:15 -07:00
Paul Gauthier (aider)
454a2ebdcf style: format code using linter 2024-09-20 13:44:07 -07:00
Paul Gauthier (aider)
7fa1620f58 feat: Allow flexible matching of 5-9 characters in SEARCH/REPLACE block prefixes 2024-09-20 13:44:02 -07:00
Paul Gauthier (aider)
230ec50209 refactor: Improve choose_fence function to check for fence start in lines 2024-09-20 13:40:44 -07:00
Paul Gauthier
d94c1c0e1f fix: Remove redundant message when no changes were made 2024-09-20 12:14:52 -07:00
Paul Gauthier
83662b7470 Merge branch 'main' into ask-plan-simple 2024-09-12 17:19:14 -07:00
Paul Gauthier
1755d2e0f4 fix: Use temperature setting from model configuration 2024-09-12 14:24:21 -07:00
Paul Gauthier
8aee4d25ed add ModelSettings.use_system_prompt 2024-09-12 14:19:53 -07:00
Paul Gauthier
291b456a45 hack for o1-mini: no system prompt, no temperature 2024-09-12 13:05:25 -07:00
Paul Gauthier
35588b6984 fix: Fix formatting of assistant_output assignment in base_coder.py 2024-09-11 09:54:47 -07:00
paul-gauthier
d1384e9d5f
Merge pull request #1402 from caseymcc/io_assistant_output
Modify output from Assistant and Commands to go through InputOutput
2024-09-10 15:08:10 -07:00
Paul Gauthier
fe2e36afda cache ro+repo or just ro if no repo 2024-09-09 14:51:33 -07:00
Paul Gauthier
d2379a6d73 feat: add shell command suggestion toggle and related prompts 2024-09-07 07:21:41 -07:00
Krazer
f4853d166f remove console 2024-09-06 18:08:51 -05:00
Krazer
69b9a4510d remove unused 2024-09-06 17:40:40 -05:00
Krazer
11020c8aee send output through InputOutput 2024-09-06 17:35:55 -05:00
Paul Gauthier
cc15909629 clean diff edit format 2024-09-06 11:25:20 -07:00
Paul Gauthier
5b584db90c sonnet-sonnet gets 60.2/84.2 2024-09-06 09:49:01 -07:00
Paul Gauthier
ff3a75413b sonnet+deep got 60.9/82.0 2024-09-05 13:30:25 -07:00
Paul Gauthier
8cfdcbd976 refactor: remove redundant get_system_info method and update related test 2024-09-05 13:00:32 -07:00
Paul Gauthier (aider)
45855bd96c feat: add get_system_info method to Coder base class 2024-09-05 12:59:12 -07:00
Paul Gauthier (aider)
3d73fac84c feat: add chat_language parameter to Coder class 2024-09-05 12:49:11 -07:00
Paul Gauthier
2d866418da feat: add ignore_mentions attribute to cloned Coder instances 2024-09-04 14:40:21 -07:00
Paul Gauthier (aider)
6152a82513 fix: handle ValueError in os.path.relpath calls 2024-09-04 14:10:56 -07:00
Paul Gauthier
c4e4967691 refactor: improve error handling in run_cmd function 2024-09-04 08:56:34 -07:00
Paul Gauthier
40d5880b44 refactor: improve error handling and messaging for git auto-commit 2024-09-04 08:52:48 -07:00
Paul Gauthier (aider)
cef78282bd feat: add error handling for git operations in auto_commit method 2024-09-04 08:52:11 -07:00
Paul Gauthier
f3cce95419 refactor: Remove unnecessary strip parameter from tool_output calls 2024-09-03 20:03:11 -07:00
Paul Gauthier
dff814a7a8 refactor: change tool_error to tool_warning for non-critical messages 2024-09-03 13:30:04 -07:00
Paul Gauthier
7db3ca50e8 fixes #1298 2024-09-02 11:08:38 -07:00
Paul Gauthier
151132277f bugfix 2024-08-31 18:43:20 -07:00