Commit graph

95 commits

Author SHA1 Message Date
Paul Gauthier (aider)
cba53bfc22 Add retry support for litellm.InternalServerError 2024-07-30 12:23:33 -03:00
Paul Gauthier
9d02628cf8 streamlit borks sys.path, causes import("litellm") to load our litellm.py; fix 2024-07-03 21:32:50 -03:00
Paul Gauthier
2dc6735ab4 defer import of httpx 2024-07-03 13:25:10 -03:00
Paul Gauthier
ee203deef0 Lazily import litellm to shave >1sec off the initial load time of aider 2024-07-03 12:45:53 -03:00
Paul Gauthier
2cd680cba7 Automatically retry on Anthropic overloaded_error 2024-07-01 14:12:00 -03:00
Paul Gauthier
044617b1b7 continue roughly working using anthropic's prefill 2024-06-27 14:40:46 -07:00
Paul Gauthier
819fccc7a4 added temp param, prompt strong that files message is truth 2024-05-16 08:52:30 -07:00
Paul Gauthier
4841f318c1 always retry httpx errors 2024-05-11 15:01:56 -07:00
Paul Gauthier
1098b428e6 prompt tweaks, retry on httpx.ReadTimeout 2024-05-11 07:47:53 -07:00
Paul Gauthier
728a629789 Catch and appropriately retry *all* litellm exceptions #598 2024-05-09 14:16:09 -07:00
Paul Gauthier
9ff6770a04 refactored litellm to avoid duplicating workarounds 2024-05-08 08:05:15 -07:00
Paul Gauthier
3e4fca2675 max_time not max_tries 2024-05-04 17:48:01 -07:00
Paul Gauthier
7c9c4fe788 should_giveup? 2024-05-04 17:43:26 -07:00
Paul Gauthier
1d7320e8a0 Added httpx.RemoteProtocolError to backoff #586 2024-05-03 08:48:19 -07:00
Paul Gauthier
a3a4d87a0c treat litellm.exceptions.BadRequestError as a 400 error and do not retry 2024-04-30 15:40:28 -07:00
Paul Gauthier
3469e04eb8 Do exp backoff for litellm.exceptions.ServiceUnavailableError #580 2024-04-30 15:34:01 -07:00
Paul Gauthier
7b14d77e9e Don't retry on gemini RECITATION error 2024-04-30 14:40:15 -07:00
Paul Gauthier
01cf038bb5 Quiet litellm 2024-04-23 10:37:43 -07:00
Paul Gauthier
9afa6e8435 Added gemini 1.5 pro 2024-04-23 09:49:48 -07:00
Paul Gauthier
0da1b59901 Fixed up images in chat 2024-04-18 14:39:32 -07:00
Paul Gauthier
c770fc4380 cleaned up client refs 2024-04-17 15:47:07 -07:00
Paul Gauthier
b0245d3930 rouged in litellm 2024-04-17 14:15:24 -07:00
Joshua Vial
9ceaf97f08 making image code more robust 2023-12-11 22:25:35 +13:00
Joshua Vial
f9ba8e7b41 Remove unnecessary comment and method call in Commands class. 2023-12-11 22:24:02 +13:00
Joshua Vial
c919f9f0c6 handle switching to gpt4-vision-preview 2023-12-11 22:23:54 +13:00
Joshua Vial
90fb538015 fix logic for image switching 2023-12-11 22:23:32 +13:00
Joshua Vial
d0255ce2ae better logic for image handling 2023-12-11 22:23:03 +13:00
Joshua Vial
3d8599617d Switch to gpt-4-vision-preview if baseurl.host includes api.openai.com/ and gpt-4, otherwise strip out any image_url messages. 2023-12-11 20:56:20 +13:00
Joshua Vial
fe9423d7b8 merge in openai upgrade 2023-12-11 20:43:18 +13:00
Paul Gauthier
57ab2cc9da Revert "implement deployment id"
This reverts commit b107db98fa.
2023-12-06 09:20:53 -08:00
Paul Gauthier
b107db98fa implement deployment id 2023-12-05 11:31:17 -08:00
Paul Gauthier
5b21d5704a fixed test_sendchat 2023-12-05 11:08:14 -08:00
Paul Gauthier
2ed0c8fb66 fixed test_repo 2023-12-05 10:58:44 -08:00
Paul Gauthier
23e6c4ee55 fixed test_coder 2023-12-05 10:51:50 -08:00
Paul Gauthier
6ebc142377 roughed in openai 1.x 2023-12-05 07:37:05 -08:00
Joshua Vial
d8f33a8124 Auto switch to gpt-4-vision-preview if image files added to context 2023-11-29 22:48:45 +13:00
Paul Gauthier
1334392418 lint 2023-09-01 15:53:19 -07:00
Joshua Vial
abbc93678b finishing openrouter integration 2023-08-23 21:26:27 +12:00
JV
041f3a4a38 initial code for working with openrouter 2023-08-23 14:39:12 +12:00
Paul Gauthier
7924900bc4 updated tests, disabled send cache 2023-08-10 12:27:46 -03:00
Paul Gauthier
9e64e7bb9d precise edit blocks prompting language 2023-08-09 11:57:00 -03:00
Paul Gauthier
0aa2ff2cf9 roughed in cache; elide full dirnames from test results to make them deterministic 2023-08-09 11:30:13 -03:00
Paul Gauthier
3e4b4d1b0d retry on APIConnectionError 2023-07-26 07:40:36 -03:00
Paul Gauthier
661a521693 aider.repo.simple_send_with_retries 2023-07-21 16:20:27 -03:00
Paul Gauthier
289887d94f refactor send_with_retries 2023-07-21 11:22:59 -03:00