Commit Graph

256 Commits

Author SHA1 Message Date
Matéo
39336ca00a fix: mistral ai bug 400 role user after role tool (#2695) 2025-09-08 10:38:55 +08:00
brook hong
47877c7e8b fix: bedrock exception could be found at end of a stream (#2654) 2025-08-31 19:11:04 +08:00
yetone
5e0aa7e5c0 feat: support acp (#2649) 2025-08-31 07:41:19 +08:00
brook hong
751e4c0913 feat: support multiple models for bedrock (#2648) 2025-08-28 20:23:05 +08:00
Fabian Klopfer
11e457e56b [feat] Add basic support for IBM's watsonx code assistant (#2617)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-08-26 17:26:15 +08:00
yetone
1e0c8520bc fix: the last used model caused the loss of the model configured in the profile in the model selector (#2600) 2025-08-12 15:33:31 +08:00
yetone
6bcf7dfbe7 fix: still use str_replace_editor (#2587) 2025-08-06 11:39:13 +08:00
PlacidFireball
6d372a9135 fix: set the content property to the empty string (#2566)
Co-authored-by: Jared Weiss <jared.weiss@quiq.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-08-02 15:37:19 +08:00
brook hong
7965546a34 fix: do not ask for API key for bedrock if aws_profile was set (#2564) 2025-08-02 13:00:00 +08:00
Shogo Nakamoto
ca63356a99 feat: allow overriding bedrock provider endpoint (#2540) 2025-07-31 14:15:34 +08:00
Dmitry Torokhov
5bc4ffa19f refactor(bedrock): replace vim.uv.spawn() with vim.system()
Instead of implementing synchronous call to a command line utility via
vim.uv.spawn() switch to using vim.system(). Its return value (object)
wait() method allows to specify timeout too.

This makes code much simpler.
2025-07-31 14:12:13 +08:00
yetone
8bc149ccd8 fix: react prompts (#2537) 2025-07-26 16:06:56 +08:00
yetone
1452c7233b fix: invalid json format (#2531) 2025-07-24 17:37:10 +08:00
Dmitry Torokhov
aa606b6147 refactor(history): change HistoryMessage:new() to accept role and item
Change the constructor to accept role and a single content item instead
of raw AvanteLLMMessage instance. This will help when we will start
changing message.content from being a string or a list of tables to just
a string or a single table.
2025-07-22 17:49:28 +08:00
Daniel Nyong
c694772d68 fix: vertex gemini 2025-07-21 21:55:53 +08:00
yetone
a08a2e3579 feat: add original_content for history message 2025-07-17 15:45:23 +08:00
yetone
cf5234b4d9 optimize: reduce copilot invocation consumption 2025-07-17 14:21:34 +08:00
yetone
2a16e7d4d9 fix: do not modify the tool_use input 2025-07-16 20:18:24 +08:00
Dmitry Torokhov
34907fc1cd refactor(history): start moving history-related code into avante/history
The utils module has grown too big and contains unrelated functionality.
Start moving code related to managing history messages comprising chat
history into lua/avante/history module to keep the code more manageable.
2025-07-16 12:49:15 +08:00
yetone
14cfccdba9 fix: do not use str_replace_editor (#2428) 2025-07-10 10:17:48 +08:00
Kyle
9f4da7ea09 fix(openai): handle nil function arguments in tool calls (#2425) 2025-07-09 14:19:29 +08:00
yetone
d98f676e32 fix: ReAct parsing (#2375) 2025-06-30 16:40:52 +08:00
Fredrik Averpil
2d9247e536 feat(providers): Defer execution of cmd: API keys (#2372) 2025-06-30 10:25:14 +08:00
Noah Chalifour
f04cee670d fix: error on calling transform_anthropic_usage on a nil with bedrock (#2360)
Co-authored-by: Noah Chalifour <nchalifo@amazon.com>
2025-06-28 21:39:39 +08:00
Daryl
8da09eae1d fix: forbidden inputs in mistral ai (#2348) 2025-06-27 15:27:40 +08:00
yetone
e89f1fd922 fix: copilot do not carry tools in ReAct situations (#2331) 2025-06-25 18:12:56 +08:00
yetone
07b703dbd5 fix: ReAct parser (#2330) 2025-06-25 16:55:10 +08:00
brook hong
46d27ff0fd fix: error on calling transform_anthropic_usage on a nil value from bedrock (#2321) 2025-06-24 20:44:57 +08:00
miguelosana
0910696737 fix: Include transform_anthropic_usage (#2319)
Co-authored-by: Miguelo Sana <miguelo@incubeta.com>
2025-06-24 19:16:27 +08:00
yetone
b6668e2e4c feat: better copilot headers (#2313) 2025-06-24 02:32:51 +08:00
yetone
b72581b23b fix: ollama is_env_set (#2304) 2025-06-23 12:05:50 +08:00
yetone
6830f2d8b9 feat: tokens usage (#2300) 2025-06-23 03:13:37 +08:00
Andriy Rakhnin
a0fc91d4c8 fix: parse_api_key inheritance problem (#2252) 2025-06-23 01:13:15 +08:00
yetone
3033556d5b fix: tool calling (#2297) 2025-06-22 21:50:26 +08:00
Karl Bowden
ce9f6a8ec1 feat: fetch ollama models to display in the model selector (#2287) 2025-06-22 16:36:28 +08:00
Mahmoud Abduljawad
53c764a258 feat: scoped API key support with AVANTE_ prefix (#2285)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-06-22 14:36:51 +08:00
yetone
1e778e1c67 fix: limit tool use count (#2294) 2025-06-22 14:36:41 +08:00
yetone
17d14cbbd5 fix: claude cache control (#2279) 2025-06-21 01:22:52 +08:00
yetone
2ed75a2f97 refactor: rename thinking => think (#2247) 2025-06-17 14:08:03 +08:00
yetone
b8aa182c3f feat: allow empty api_key_name (#2228) 2025-06-15 15:34:26 +08:00
Avinash Thakur
8396cc77e4 feat: allow overriding provider headers (#2161) 2025-06-08 02:04:00 +08:00
yetone
ac5dc900eb fix: updating provider configuration (#2187) 2025-06-07 18:02:35 +08:00
yetone
b7959191a3 fix: claude assistant content cannot end with trailing whitespace (#2186) 2025-06-07 17:18:37 +08:00
yetone
a2f31bd2e2 fix: updating provider config (#2183) 2025-06-07 16:34:21 +08:00
Bryan Vaz
314be729cf fixes #2154 (#2179) 2025-06-07 14:37:55 +08:00
Avinash Thakur
ec0f4f9ae0 feat: allow custom input provider, removing dressing.nvim (#2173)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: yetone <yetoneful@gmail.com>
2025-06-06 23:04:35 +08:00
yetone
a341d1dc0b chores: add error message for provider configuration error (#2169) 2025-06-05 23:02:59 +08:00
yetone
b7a5184219 fix: compatible with the tool use format preferred by gemini (#2160) 2025-06-05 03:12:07 +08:00
yetone
54d2790fe0 fix: ignore errors in is_env_set (#2159) 2025-06-05 02:56:59 +08:00
yetone
220594a66f optimize: streaming diff performance (#2145) 2025-06-04 15:45:12 +08:00