107 Commits

Author SHA1 Message Date
Leonardo Mariscal
4d9d2de6fe openai provider add empty parameters to tool call (#2845) 2025-11-28 20:03:58 +08:00
you-n-g
f8a7cd1a60 fix: gpt-5-chat is not a reasoning model
* Exclude GPT-5-Chat 

Exclude GPT-5-Chat. It is not a reasoning model.

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-11-09 21:39:45 +08:00
yetone
d45b622193 Auto select Copilot Response API for GPT-5 Codex models (#2808) 2025-10-30 22:38:32 +08:00
yetone
b95e27b5a6 feat: supports OpenAI Response API and copilot's gpt-5-codex model (#2802)
* fix: upgrade vscode version

* feat: support openai response api

* refactor: refine todos tools

* fix: trim suffix empty lines
2025-10-30 02:18:48 +08:00
yetone
164a86db6e fix(copilot): the tool_call index starts from 1 in copilot + claude-sonnet-4.5 (#2794) 2025-10-22 17:45:37 +08:00
Dmitry Torokhov
0716819a0e feat(providers): fail gracefully when a provider is misconfigured (#2768) 2025-10-15 18:43:55 +08:00
Matéo
39336ca00a fix: mistral ai bug 400 role user after role tool (#2695) 2025-09-08 10:38:55 +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
yetone
8bc149ccd8 fix: react prompts (#2537) 2025-07-26 16:06:56 +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
yetone
a08a2e3579 feat: add original_content for history message 2025-07-17 15:45:23 +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
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
Daryl
8da09eae1d fix: forbidden inputs in mistral ai (#2348) 2025-06-27 15:27:40 +08:00
yetone
07b703dbd5 fix: ReAct parser (#2330) 2025-06-25 16:55:10 +08:00
yetone
6830f2d8b9 feat: tokens usage (#2300) 2025-06-23 03:13:37 +08:00
yetone
3033556d5b fix: tool calling (#2297) 2025-06-22 21:50:26 +08:00
yetone
1e778e1c67 fix: limit tool use count (#2294) 2025-06-22 14:36:41 +08:00
yetone
2ed75a2f97 refactor: rename thinking => think (#2247) 2025-06-17 14:08:03 +08:00
Avinash Thakur
8396cc77e4 feat: allow overriding provider headers (#2161) 2025-06-08 02:04:00 +08:00
yetone
b7a5184219 fix: compatible with the tool use format preferred by gemini (#2160) 2025-06-05 03:12:07 +08:00
yetone
220594a66f optimize: streaming diff performance (#2145) 2025-06-04 15:45:12 +08:00
yetone
fc0e78e88f fix: gemini ReAct (#2132) 2025-06-04 01:14:06 +08:00
yetone
746f071b37 feat: streaming diff (#2107) 2025-06-02 16:44:33 +08:00
yetone
bc403ddcbf feat: ReAct tool calling (#2104) 2025-05-31 08:53:34 +08:00
soulfy
f65e72900f fix(provider.openai) reasoning_content maybe empty string (#2000)
Co-authored-by: yetone <yetoneful@gmail.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-05-08 12:42:14 +08:00
yetone
3ab2a5d68e fix: check on_chunk if it is a nil (#1998) 2025-05-07 01:02:11 +08:00
yetone
60897ee9a6 fix: o1 model (#1992) 2025-05-06 19:32:55 +08:00
yetone
8f23cc85ab fix: gemini openai compatible api (#1976) 2025-05-03 14:09:46 +08:00
yetone
d3094d6c9f fix: help cmd (#1963) 2025-05-02 00:53:55 +08:00
yetone
f2330a0701 fix: dispatch agent (#1953) 2025-05-01 05:12:23 +08:00
Daniel
c2ec1a8e49 fix(openai): wrap single text block in array before appending images (#1948) 2025-05-01 03:33:53 +08:00
yetone
99a2e35ff3 fix: copilot gemini function calling (#1947) 2025-05-01 00:09:39 +08:00
yetone
f10b8383e3 refactor: history messages (#1934) 2025-04-30 03:07:18 +08:00
yetone
33f95aedde feat: streaming json parser (#1883) 2025-04-16 23:41:38 +08:00
yetone
04336913b3 Revert "fix max_tokens for reasoning models (#1819)" (#1839)
* Revert "fix max_tokens for reasoning models (#1819)"

This reverts commit 1e2e233ff5.

* Revert "fix: revert max_completion_tokens to max_tokens (#1741)"

This reverts commit cd13eeb7d9.

* fix: nvim_version
2025-04-09 16:58:54 +08:00
PSeitz
1e2e233ff5 fix max_tokens for reasoning models (#1819) 2025-04-07 13:55:40 +08:00
yetone
cd13eeb7d9 fix: revert max_completion_tokens to max_tokens (#1741) 2025-03-27 16:53:55 +08:00
yetone
25e9b1c111 fix: copilot's openai tool description cannot use long text (#1700) 2025-03-24 19:54:06 +08:00
yetone
49ae3c84fd feat: add view_range parameter and remove read_file llm tool (#1690) 2025-03-24 15:07:14 +08:00
kernitus
7d137d32cb fix: do not allow max_tokens & max_completion_tokens at the same time (#1633)
* fix: do not allow max_tokens & max_completion_tokens at the same time

* chore: fix formatting
2025-03-19 01:44:41 +08:00
kernitus
10ce065d9e feat: update openai/azure params (#1604)
* feat(openai): use max_completion_tokens & reasoning_effort params

* feat(openai): use developer prompt for reasoning models

* docs: update openai config in readme

* refactor: follow lua style quotes

* fix(azure): rename max_tokens to max_completion_tokens

* refactor(azure): remove duplicate field

* refactor: update types

* refactor(azure): update type
2025-03-18 19:40:20 +08:00
Florian Engelhardt
3b86549485 Add extra headers for OpenAI (#1615) 2025-03-17 17:51:08 +08:00
brook hong
e204ca1cf3 feat: support tools in bedrock (#1598) 2025-03-17 13:42:18 +08:00
yetone
eb5a2f6cca fix: missing tool use (#1610) 2025-03-17 05:00:03 +08:00
yetone
dfdab1d41f fix: openai tool histories (#1606) 2025-03-17 03:06:26 +08:00
yetone
6e77da83c1 fix: better sidebar (#1603)
* fix: better sidebar

* feat: better msg history

* fix: tests
2025-03-17 01:40:05 +08:00
yetone
f9f92dc9d4 Revert "fix: Always handle the extra response outside of stream, such as the exceptions from bedrock (#1526)" (#1569)
This reverts commit f9ab6934d2.
2025-03-12 19:10:05 +08:00