Paul Gauthier (aider)
74da63e3ca
refactor: Move RETRY_TIMEOUT constant to models.py
2025-02-04 11:45:40 -08:00
Paul Gauthier (aider)
72b82a8d19
style: Run linter and fix whitespace issues in models.py and sendchat.py
2025-02-04 11:34:45 -08:00
Paul Gauthier (aider)
c3beaedaa6
chore: remove CACHE logic from sendchat and models files
2025-02-04 11:34:38 -08:00
Paul Gauthier (aider)
db694b20df
style: Run linter and fix import order in models.py and sendchat.py
2025-02-04 11:33:49 -08:00
Paul Gauthier (aider)
34227ce738
fix: Remove unused imports from sendchat.py and add hashlib import in models.py
2025-02-04 11:33:43 -08:00
Paul Gauthier (aider)
24b1360eb8
style: Run linter and fix whitespace issues in models.py and sendchat.py
2025-02-04 11:33:05 -08:00
Paul Gauthier (aider)
60aff26d94
refactor: Move send_completion and simple_send_with_retries to Model class
2025-02-04 11:32:58 -08:00
Paul Gauthier
6e5b2c7368
cleanup
2025-01-28 10:49:40 -08:00
Paul Gauthier (aider)
231bceeabb
style: Fix whitespace in docstring
2025-01-24 09:14:55 -08:00
Paul Gauthier (aider)
387b7602cf
style: Break long lines to comply with flake8 E501
2025-01-24 09:14:51 -08:00
Paul Gauthier
d8c14c04e3
refactor: standardize string quotes and improve model name handling
2025-01-24 09:14:37 -08:00
Mir Adnan ALI
92f6d31f33
Updated patch to avoid KeyError on malformed dict
2025-01-24 05:25:21 -05:00
Mir Adnan ALI
421bc93765
Ensure alternating roles for deepseek-reasoner
2025-01-24 03:58:08 -05:00
Paul Gauthier
42ef4352f4
refactor: Handle KeyboardInterrupt with user-assistant message pair and add env check for sanity_check_messages
2025-01-22 09:03:09 -08:00
Paul Gauthier
61ab5d1652
disable sanity check
2025-01-20 11:35:54 -08:00
Paul Gauthier
163e6f56df
re-enable summaries
2025-01-20 11:26:19 -08:00
Paul Gauthier
5650697475
no turn errors, with upd_cur_msgs fix and summarizer disabled
2025-01-20 11:10:43 -08:00
Paul Gauthier
06d5b14b86
sanity_check_messages
2025-01-20 09:43:01 -08:00
Paul Gauthier
dff544cd5d
refactor: Split summarize method and add model metadata handling
2025-01-20 09:38:45 -08:00
Paul Gauthier (aider)
73bc0f6258
style: Remove trailing whitespace in sendchat.py
2025-01-20 08:35:24 -08:00
Paul Gauthier (aider)
7e5e180000
feat: verify last non-system message is from user in sanity_check_messages
2025-01-20 08:35:21 -08:00
Paul Gauthier (aider)
fc431df2b4
style: Add blank lines for better readability in sendchat.py
2025-01-20 08:34:44 -08:00
Paul Gauthier (aider)
bb61be630a
feat: add message role validation function
2025-01-20 08:34:40 -08:00
Paul Gauthier
cdc9ec2854
refactor: Add comment for sanity_check_messages
function in sendchat.py
2025-01-20 08:34:38 -08:00
Paul Gauthier (aider)
ccf460c1f7
refactor: update simple_send_with_retries to use model object and handle temperature
2024-12-07 13:37:14 -08:00
Paul Gauthier (aider)
7a8399571a
fix: Handle non-retryable errors by returning None in simple_send_with_retries
2024-11-08 10:03:49 -08:00
Paul Gauthier (aider)
d0e85d9c2c
style: Apply linter formatting to sendchat.py and test_sendchat.py
2024-11-08 10:02:54 -08:00
Paul Gauthier (aider)
14d02bc843
fix: Handle None response and update InvalidRequestError test
2024-11-08 10:02:48 -08:00
Paul Gauthier (aider)
9e7219c4d6
style: Run linter to clean up code formatting in sendchat.py
2024-11-07 13:02:10 -08:00
Paul Gauthier (aider)
4d96728709
fix: Remove unused import of 'backoff' in sendchat.py
2024-11-07 13:02:07 -08:00
Paul Gauthier
816fd5e65c
refactor: Simplify error handling and remove unused retry exceptions code
2024-11-07 13:02:04 -08:00
Paul Gauthier
17330e53c3
refactor: Improve error handling and URL processing in chat functionality
2024-10-31 14:13:36 -07:00
Paul Gauthier
907c1dbe2b
refactor: split error and retry messages in simple_send_with_retries
2024-10-28 15:10:27 -07:00
Paul Gauthier (aider)
3baad86afd
refactor: consolidate error and retry messages into single print statement
2024-10-28 15:09:22 -07:00
Paul Gauthier (aider)
bc515cf74a
refactor: add retry loop to simple_send_with_retries function
2024-10-28 15:05:07 -07:00
Paul Gauthier
f9c45432e6
refactor: Move retry logic from base_coder to sendchat module
2024-10-28 15:05:06 -07:00
Paul Gauthier
54d55c857b
refactor: update retry exceptions to use openai instead of litellm
2024-10-28 14:40:42 -07:00
Paul Gauthier
8e2a4b47d6
fix: update litellm exception imports and error handling
2024-10-28 14:29:42 -07:00
Paul Gauthier (aider)
cd133f95ee
style: fix linting issues with whitespace and line breaks
2024-10-28 14:27:26 -07:00
Paul Gauthier (aider)
3d66b53791
test: add basic test for retry_exceptions function
2024-10-28 14:27:20 -07:00
Paul Gauthier
bf63e7045b
refactor: simplify litellm exception imports
2024-10-28 14:27:19 -07:00
Paul Gauthier
e2dff0a74b
#2120
2024-10-25 15:47:30 -07:00
Paul Gauthier
be74259df6
fix: add missing AnthropicError exception to retry list
2024-10-25 07:31:39 -07:00
Paul Gauthier
29293cc8ac
fix: update import path for AnthropicError in retry_exceptions
2024-10-25 07:07:36 -07:00
Paul Gauthier
6bb9b2567f
refactor: Centralize retry timeout and use consistent value
2024-10-15 12:25:05 -07:00
Paul Gauthier
810aeccf94
fix: Replace extra_headers and extra_body with extra_params in Coder, ChatSummary, and GitRepo
2024-09-27 13:09:43 -07:00
Paul Gauthier (aider)
c24e947b18
style: Run linter
2024-09-27 13:02:47 -07:00
Paul Gauthier (aider)
74f615bbb4
feat: Consolidate extra parameters in sendchat.py
2024-09-27 13:02:44 -07:00
hypn4
6dc846d41b
fix: added missing parameters.
...
added missing parameters in `simple_send_with_retries` function.
2024-09-23 20:37:10 +09:00
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