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
Paul Gauthier
2ca093fb84
Bumping all dependencies
2024-09-21 11:04:57 -07:00
Paul Gauthier
1755d2e0f4
fix: Use temperature setting from model configuration
2024-09-12 14:24:21 -07:00
Paul Gauthier
291b456a45
hack for o1-mini: no system prompt, no temperature
2024-09-12 13:05:25 -07:00
Paul Gauthier
97a70830e9
cleanup
2024-08-26 15:49:48 -07:00
Paul Gauthier (aider)
2906dcb642
style: Fix formatting in sendchat.py
2024-08-23 14:20:18 -07:00
Paul Gauthier (aider)
5ded503d2b
fix: Only include extra_headers in send_completion if not None
2024-08-23 14:20:15 -07:00
Paul Gauthier (aider)
e81ddcc1a6
feat: Add extra_headers parameter to simple_send_with_retries
2024-08-23 14:17:44 -07:00
Paul Gauthier
3996c4a7d5
force tool use
2024-08-14 11:21:36 -07:00
Paul Gauthier
675263623d
use strict for new gpt4o
2024-08-14 11:14:37 -07:00
Paul Gauthier
e1b83ba6b5
Merge branch 'main' into json-coders
2024-08-13 17:03:30 -07:00
Paul Gauthier
2a1fb7d150
Clean up DEEPSEEK_API_BASE
2024-08-12 15:35:32 -07:00
Paul Gauthier (aider)
485418d917
feat: Add --deepseek-beta bool arg to use DeepSeek Coder via the beta API endpoint
2024-08-12 15:06:55 -07:00
Paul Gauthier (aider)
2669b0c758
style: Apply linter edits to sendchat.py
2024-08-12 15:04:08 -07:00
Paul Gauthier (aider)
7822c1c879
feat: Add support for DeepSeek API base URL
2024-08-12 15:04:05 -07:00
Paul Gauthier
3f6ae4b2d9
Handle retries at a higher level; exceptions come out of the streaming completion object
2024-08-08 14:54:59 -03:00
Paul Gauthier
3d66aea572
retry sends in most cases
2024-08-07 11:30:43 -03:00
Paul Gauthier
1ecc780f74
Revert "Stop using litellm._should_retry"
...
This reverts commit 1e232d4db6
.
2024-08-07 11:29:31 -03:00
Paul Gauthier
47295a1545
wip
2024-08-07 07:37:16 -03:00
Paul Gauthier
1e232d4db6
Stop using litellm._should_retry
2024-08-06 14:32:52 -03:00
Paul Gauthier
da3e507ec4
Revert "rename simple_send_with_retries -> send_with_retries"
...
This reverts commit d619edf6e9
.
2024-08-02 10:49:44 -03:00
Paul Gauthier
d619edf6e9
rename simple_send_with_retries -> send_with_retries
2024-08-02 10:35:10 -03:00
Paul Gauthier
4a42a07237
fix: Handle empty status codes in litellm retry decorator
2024-08-01 18:33:52 -03:00
Paul Gauthier
5e818c2899
support 8k output with 3.5 sonnet
2024-08-01 17:52:14 -03:00
Paul Gauthier (aider)
38b411a6cb
feat: Add extra_headers parameter to send_with_retries function
2024-08-01 17:27:31 -03:00
Paul Gauthier (aider)
bcd802b6e9
Add retry support for litellm.InternalServerError
in the send_with_retries
function in aider/sendchat.py
.
2024-07-30 12:23:41 -03:00