hypn4
d0bce02c00
feat: add extra_body
field 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 (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
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
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
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
151132277f
bugfix
2024-08-31 18:43:20 -07:00
Paul Gauthier (aider)
827469463f
style: remove unnecessary f-string prefixes
2024-08-31 10:28:00 -07:00
Paul Gauthier
029c017eb5
refactor: Update platform text generation for lint and test commands
2024-08-31 10:27:52 -07:00
Paul Gauthier (aider)
041b2317fb
style: remove unused import of 'git'
2024-08-31 08:41:51 -07:00
Paul Gauthier
e48037b8b7
style: reorder imports in base_coder.py alphabetically
2024-08-31 08:41:45 -07:00
Paul Gauthier
5781f91649
refactor: consolidate git error handling with ANY_GIT_ERROR constant
2024-08-31 08:41:32 -07:00
Paul Gauthier
5a6f7b3cd1
catch all git errors
2024-08-31 08:36:00 -07:00
Paul Gauthier
72c9ac460b
catch all git.exc.ODBError
2024-08-31 08:24:53 -07:00
Paul Gauthier
01964ca294
refactor: improve file handling and error reporting in Coder class
2024-08-31 08:15:02 -07:00
Paul Gauthier (aider)
b6b4fc6fab
refactor: replace .touch() calls with utils.touch_file()
2024-08-31 08:08:49 -07:00
Paul Gauthier
3b9e000892
get_head* -> get_head_commit*
2024-08-31 07:35:55 -07:00
Paul Gauthier
d2acb9c3b0
use safe repo.get_head methods
2024-08-31 07:34:18 -07:00
Paul Gauthier
8f5b243c1b
refactor: improve platform info and shell command suggestions
2024-08-30 18:28:45 -07:00
Paul Gauthier (aider)
511a2a26de
style: Remove trailing whitespace in base_coder.py
2024-08-30 18:24:58 -07:00
Paul Gauthier (aider)
87593a2e37
refactor: improve formatting of lint commands in platform info
2024-08-30 18:24:52 -07:00
Paul Gauthier (aider)
ec9a6f9d66
style: Remove trailing whitespace in base_coder.py
2024-08-30 18:23:57 -07:00
Paul Gauthier (aider)
33793ca95d
feat: add lint and test commands to platform info
2024-08-30 18:23:51 -07:00
Paul Gauthier
946e6759b0
feat: Add lint_cmds attribute to Coder class
2024-08-30 18:23:49 -07:00
Paul Gauthier (aider)
dd9f0494c1
refactor: extract platform info generation to separate method
2024-08-30 18:22:12 -07:00
Paul Gauthier
2999c64435
refactor: simplify error handling for tracked files count
2024-08-30 07:47:50 -07:00
Paul Gauthier (aider)
d9cc47728f
feat: add UnableToCountRepoFiles exception class
2024-08-30 06:59:52 -07:00
Paul Gauthier
2c6c5e712f
feat: add error handling for counting repo files
2024-08-30 06:59:50 -07:00
Paul Gauthier
b56f824728
fixes #1219 and #1221
2024-08-29 13:06:19 -07:00
Paul Gauthier
a47cb9cdea
refactor: conditionally output cached tokens message based on verbosity
2024-08-29 06:36:22 -07:00
Paul Gauthier
e45def7a98
refactor: sort new file mentions before confirmation
2024-08-28 17:59:04 -07:00
Paul Gauthier (aider)
41a43fc313
fix: remove redundant set conversion in get_file_mentions return
2024-08-28 17:52:27 -07:00
Paul Gauthier
b9c5a7cdab
refactor: optimize file mention checking logic
2024-08-28 17:52:25 -07:00
Paul Gauthier (aider)
b0d4b4319d
refactor: introduce new_mentions variable for clarity
2024-08-28 17:49:23 -07:00