Commit Graph

721 Commits

Author SHA1 Message Date
yetone
8b730182cb refactor: ui lib (#1642) 2025-03-19 14:34:32 +08:00
yetone
55d5dfa8cd fix: ask api (#1641) 2025-03-19 14:14:57 +08:00
yetone
abca1a4ea3 feat: minimal diff for claude text edit tool mode (#1636) 2025-03-19 03:34:24 +08:00
yetone
0786499712 feat: link diff and confirm (#1635) 2025-03-19 03:09:30 +08:00
kyrisu
20fea1e717 refactor: rename is_o_series_model to is_reasoning_model (#1632) 2025-03-19 01:45:28 +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
yetone
191d7b8783 feat: claude text editor tool (#1631) 2025-03-19 00:09:49 +08:00
brook hong
a8baee4354 fix: header text in case of no nvim-web-devicons setup and show current provider/model in it (#1617) 2025-03-18 19:40:50 +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
Ellis Rahhal
51eb8fc2d9 feat: added optional docker args for rag service (#1589) 2025-03-18 12:06:37 +08:00
ESSO0428
6fc4f16a4e fix: normalize CRLF to LF in read_file_from_buf_or_disk (#1622)
Ensure consistent line endings when reading files by converting CRLF
(`\r\n`) to LF (`\n`). This fixes incorrect line number detection
when modifying CRLF-formatted files.

Addresses yetone/avante.nvim#1621.
2025-03-18 10:43:22 +08:00
Haaris Rahman
4384a8ddca fix: use new treesitter syntax for cursor planning (#1623) 2025-03-18 10:43:08 +08:00
yetone
540cc53f0c fix: valid codeblock (#1616) 2025-03-17 19:06:40 +08:00
Florian Engelhardt
3b86549485 Add extra headers for OpenAI (#1615) 2025-03-17 17:51:08 +08:00
Jaime
f761e83033 fix: update displayed response for the first chunk (#1594)
If one is using avante.nvim with a non streaming LLM API the API
response will only have a single chunk. So that if we don't update the
displayed_response in the sidebar component, the output of the LLM will
be removed from the sidebar when we complete the interaction with the
LLM.

This commit makes sure that the displayed_response is updated for the
first chunk as well as subsequent ones.
2025-03-17 17:48:32 +08:00
Hanchin Hsieh
bf61e3c7e3 fix: correct button rendering for multi-line messages in confirmation dialog
This commit fixes an issue where buttons in the confirmation dialog

would not render properly when displaying multi-line messages.

Changes:

- Add dynamic positioning for buttons based on message length

- Calculate button row position based on the number of lines in the message

- Update focus_button function to accept custom row parameter

- Ensure highlights are applied at correct positions for varied message lengths

Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
2025-03-17 16:47:35 +08:00
Hanchin Hsieh
3dd5bed48f feat(ui): add support for multi-line messages in confirm dialog
1. Split message into multiple lines using vim.split()

2. Apply indent to each line of the message using vim.tbl_map()

3. Improve code readability by using vim.iter() and chained methods

4. Simplify button line generation with string.rep()

Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
2025-03-17 16:21:39 +08:00
yetone
aaf400a411 fix: parse empty code block in markdown (#1612) 2025-03-17 15:03:04 +08:00
brook hong
e204ca1cf3 feat: support tools in bedrock (#1598) 2025-03-17 13:42:18 +08:00
yetone
3504e64407 fix: empty message content (#1611) 2025-03-17 05:15:57 +08:00
yetone
eb5a2f6cca fix: missing tool use (#1610) 2025-03-17 05:00:03 +08:00
yetone
63605a55a3 fix: increase history max_tokens (#1609) 2025-03-17 04:38:08 +08:00
yetone
e05312f83b fix: reset buffer (#1608) 2025-03-17 04:05:22 +08:00
yetone
79bf76ed72 fix: increase max_tokens (#1607) 2025-03-17 03:29:44 +08:00
yetone
dfdab1d41f fix: openai tool histories (#1606) 2025-03-17 03:06:26 +08:00
yetone
078f06320c feat: make confirm window large (#1605) 2025-03-17 02:31:17 +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
f60f150a21 fix: openrouter always returns 200 regardless of the situation (#1586) 2025-03-14 19:29:16 +08:00
yetone
bafe156639 feat: rename search_keyword => grep_search (#1584) 2025-03-14 15:57:24 +08:00
yetone
e332d74c06 fix: anthropic rate limit (#1583) 2025-03-14 14:13:47 +08:00
yetone
110ba8a21f optimize: refine context prompts (#1579) 2025-03-14 03:47:26 +08:00
yetone
1e82a1c0e7 fix: do not use bash to write file! (#1576) 2025-03-13 16:53:50 +08:00
yetone
d307467771 feat: hide in model selector (#1574) 2025-03-13 01:39:59 +08:00
yetone
8b37cfc306 feat: system_prompt can be a function (#1571) 2025-03-12 19:57:17 +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
miguelosana
fee1aacdfc feat: Add claude tools to vertex claude provider (#1559)
* feat: Add claude tools to vertex claude provider

* fix: export transform_tool from claude.lua

* Include type for transfor_tool

---------

Co-authored-by: Miguelo Sana <miguelo@incubeta.com>
2025-03-12 18:43:44 +08:00
yetone
9e3e8d06a2 feat: get custom tools from a function (#1567) 2025-03-12 17:57:09 +08:00
Dalton Kye Miller
e635452389 fix: mappings not clearing after diff (#1562) 2025-03-12 16:46:10 +08:00
Kasper Seweryn
c4fa4621fb fix: remove stale popup buffers (#1530)
* fix: remove stale popup buffers

* fix: restore the logic for updating the buffer

---------

Co-authored-by: yetone <yetoneful@gmail.com>
2025-03-12 16:43:25 +08:00
brook hong
f9ab6934d2 fix: Always handle the extra response outside of stream, such as the exceptions from bedrock (#1526) 2025-03-12 16:29:32 +08:00
adasauce
70124ad366 feat: add caller information to debug logs (#1534) 2025-03-12 02:56:59 +08:00
kernitus
9552a960ef fix(azure): attempt to call is_o_series_model (#1560) 2025-03-12 02:53:59 +08:00
yetone
9c7a1a59ac fix: plenary.path is too slow (#1557) 2025-03-11 15:39:34 +08:00
yetone
5a1f9fcfb9 fix: trim empty last line (#1556) 2025-03-11 15:20:58 +08:00
yetone
dff7e9b802 optimize: is_win (#1555) 2025-03-11 15:12:39 +08:00
yetone
7c3460628b fix: cannot serialise userdata (#1551) 2025-03-11 00:55:05 +08:00
yetone
aa2c2b0054 fix: stricter static typing (#1550) 2025-03-11 00:41:21 +08:00
miguelosana
3eaaaa8f5f feat: add vertex claude provider (#1549)
* feat: Add vertex claude provider

* remove debug logging

---------

Co-authored-by: Miguelo Sana <miguelo@incubeta.com>
2025-03-10 22:43:10 +08:00
yetone
7d7f93d093 feat: upgrade rag service (#1548) 2025-03-10 16:32:17 +08:00
yetone
558a7bbd38 fix: close_from_input keybinding types (#1546) 2025-03-10 15:54:01 +08:00