Commit graph

256 commits

Author SHA1 Message Date
Paul Gauthier
59ae9d9daf turn off openrouter referer special case for sonnet 2024-08-26 12:20:50 -07:00
Paul Gauthier
7ba798647f restore the reminder for sonnet 2024-08-25 09:56:32 -07:00
Paul Gauthier
f4d81f3473 url 2024-08-25 09:53:00 -07:00
Paul Gauthier (aider)
6401c1653a fix: Remove unused importlib import 2024-08-25 09:39:31 -07:00
Paul Gauthier
b67914d74e fix: Improve model info caching and fallback logic 2024-08-25 09:39:26 -07:00
Paul Gauthier
b7a9925cea fix: Remove unused import 'requests' from 'aider/models.py' 2024-08-25 08:22:20 -07:00
Paul Gauthier (aider)
29bb70d407 style: Run linter 2024-08-25 08:19:19 -07:00
Paul Gauthier (aider)
5473d99e13 refactor: Extract get_model_info into a standalone function 2024-08-25 08:19:15 -07:00
Paul Gauthier
539a657624 feat: Add support for making HTTP requests in the Model class 2024-08-25 08:19:14 -07:00
Paul Gauthier (aider)
5e8f9f72cc fix: Flip logic in get_model_info 2024-08-25 07:57:20 -07:00
Paul Gauthier (aider)
2570a4d193 style: Format code with black 2024-08-25 07:55:08 -07:00
Paul Gauthier (aider)
7f1f2cb7ba feat: Add safe_read_json and safe_write_json functions to aider/utils.py 2024-08-25 07:55:02 -07:00
Paul Gauthier (aider)
fb812acfe1 feat: cache the fetched json in Path.home() / .aider / caches 2024-08-25 07:54:44 -07:00
Paul Gauthier (aider)
5e50adb96f fix: Split long URL into multiple lines to adhere to line length limit 2024-08-25 07:53:03 -07:00
Paul Gauthier (aider)
225cb93b05 style: Fix formatting in aider/models.py 2024-08-25 07:52:51 -07:00
Paul Gauthier (aider)
bd30ae936c feat: Fetch model info from GitHub first, then fall back to local resource 2024-08-25 07:52:48 -07:00
Paul Gauthier (aider)
63c6bffb46 fix: Remove unused Path import from aider/models.py 2024-08-25 07:51:31 -07:00
Paul Gauthier (aider)
6d7a6ccee3 fix: use importlib.resources.open_text() to read JSON file in get_model_info 2024-08-25 07:50:58 -07:00
Paul Gauthier
59bef7cb1c feat: Inherit Model class from ModelSettings 2024-08-23 15:18:10 -07:00
Paul Gauthier
5c7707a51a no user remind 2024-08-20 17:55:26 -07:00
Paul Gauthier
919ea05482 ignore shell edits in base coder 2024-08-20 17:50:31 -07:00
Paul Gauthier
c13b277070 ModelSettings.reminder_as_sys_msg:true/false -> reminder:sys/user/None 2024-08-20 10:51:37 -07:00
Paul Gauthier
b8d09e1f04 load litellm if model metadata json is present 2024-08-19 10:37:49 -07:00
Paul Gauthier
f6023865f8 turn on caching for haiku 2024-08-18 16:49:21 -07:00
Paul Gauthier
36663cf04e fix: Update content handling in ChatChunks class
feat: Add date-based caching for prompts
refactor: Simplify current date/time formatting in Coder class
2024-08-17 08:47:43 -07:00
Paul Gauthier
022d103a99 fix: Add cache control headers to chat messages 2024-08-17 07:02:56 -07:00
Paul Gauthier (aider)
0f09bd7fb3 refactor: Refactor "anthropic-beta" header value to a constant 2024-08-17 06:59:48 -07:00
Paul Gauthier
94c4b59f9e feat: Add prompt caching header to model settings 2024-08-17 06:59:47 -07:00
Paul Gauthier (aider)
531ede2073 feat: add cache_control_enabled field to ModelSettings 2024-08-17 06:58:19 -07:00
Paul Gauthier
8d4d549a98 catch litellm bug for image size 2024-08-15 10:34:49 -07:00
Paul Gauthier
390e425729 Warn windows users about setx restart terminal 2024-08-13 09:25:01 -07:00
Paul Gauthier (aider)
4d9f091802 style: format code for better readability 2024-08-13 09:19:58 -07:00
Paul Gauthier (aider)
d0ab70eba0 feat: Add note for Windows users about restarting terminal after setting environment variables 2024-08-13 09:19:54 -07:00
Paul Gauthier
888211fd48 use litellm's new supports_assistant_prefill 2024-08-12 15:10:02 -07:00
Paul Gauthier
0a5b5c3fd6 fix: Fix token_count method to handle list of messages 2024-08-07 13:13:10 -03:00
Paul Gauthier (aider)
f1bd90c024 style: Fix import order in aider/models.py 2024-08-07 11:42:37 -03:00
Paul Gauthier (aider)
f16564994f feat: use constants from llm.py in models.py 2024-08-07 11:42:34 -03:00
Paul Gauthier
19ad89e1d7 Added gpt-4o-2024-08-06 2024-08-07 11:26:15 -03:00
Paul Gauthier
0e14014118 restore openrouter attribution with extra_headers 2024-08-07 11:24:37 -03:00
Paul Gauthier
e48fecee14 fix: Handle missing model info values gracefully 2024-08-07 07:45:39 -03:00
Paul Gauthier
f059505edf Do fast env validation if models start with openai/ anthropic/ 2024-08-06 15:30:43 -03:00
Paul Gauthier
ed9ed895d0 Added ModelSettings for openai/gpt-4o-2024-08-06 2024-08-06 15:28:53 -03:00
Thinh Nguyen
736d354280
Disable 8k token for vertex_ai/claude-3-5-sonnet 2024-08-02 12:03:01 -07:00
Paul Gauthier
5e818c2899 support 8k output with 3.5 sonnet 2024-08-01 17:52:14 -03:00
Paul Gauthier (aider)
32d82b3175 feat: Use ModelSettings to set defaults in Model.__init__ 2024-08-01 17:31:13 -03:00
Paul Gauthier
3c5d08920f Use the main model as a fallback for commit messages 2024-07-28 17:14:30 -03:00
Paul Gauthier
b7eaa0fe7c Show the correct did-you-mean models #917 2024-07-22 17:24:30 +02:00
Paul Gauthier
bd6cedf70b Use 4o-mini as the weak model instead of 3.5-turbo 2024-07-18 20:42:24 +01:00
Paul Gauthier
18b2995527 gpt-4o-mini 2024-07-18 20:03:32 +01:00
Paul Gauthier
50353acb1a return fq and model names mixed together from fuzzy match 2024-07-14 18:26:05 +01:00