Commit Graph

740 Commits

Author SHA1 Message Date
yetone
b837274e0f fix: sidebar border (#1669) 2025-03-22 05:11:07 +08:00
yetone
4e839f1679 fix: use the same lang (#1668) 2025-03-22 02:54:05 +08:00
yetone
1cc81b10bf fix: startinsert in the last col (#1667) 2025-03-22 02:20:43 +08:00
yetone
1e1cd1cf78 fix: confirm ui (#1665) 2025-03-22 01:57:22 +08:00
yetone
1025d45cfa fix: result container winbar (#1664) 2025-03-22 00:48:59 +08:00
yetone
86b63b2a33 chores: refine ui (#1663) 2025-03-22 00:42:20 +08:00
yetone
a60a8d4701 fix: change readonly files (#1659) 2025-03-21 19:48:28 +08:00
Omar Crespo
bae5275705 feat: add stop sequence (#1652) 2025-03-21 19:34:33 +08:00
Omar Crespo
d1fa11ec41 fix: claude-text-editor dont change the mod for other providers (#1656) 2025-03-21 10:30:44 +08:00
yetone
3a96c1f9c7 fix: do not asynchronously store history messages (#1654) 2025-03-20 19:27:32 +08:00
yetone
af372d7328 fix: confirm ux (#1653) 2025-03-20 19:00:23 +08:00
Omar Crespo
968d5fbd52 fix: RAG services improvements (#1565)
* fix: rag nix runner

* feat: improve rag default models

* fix: change log levels to avoid huge log files in rag service
2025-03-20 13:28:04 +08:00
yetone
a9ec013f1c fix: fix code snippets parsing bug in cursor planning mode (#1651) 2025-03-20 13:26:00 +08:00
yetone
008fe29de8 fix: use host network for rag service container (#1649) 2025-03-20 03:45:44 +08:00
yetone
8c9cd1a7b2 Revert "feat: Allow Chat Sidebar to Replace the Main Window (No Split) (#1638)" (#1648)
This reverts commit 31041f6d65.
2025-03-20 03:25:08 +08:00
brook hong
31041f6d65 feat: Allow Chat Sidebar to Replace the Main Window (No Split) (#1638) 2025-03-20 03:10:54 +08:00
yetone
bfe8404161 fix: treesitter fold (#1647) 2025-03-20 03:04:30 +08:00
yetone
1c8cac1958 feat: history manager (#1644) 2025-03-19 17:28:05 +08:00
yetone
f226df8348 fix: read latest content (#1643) 2025-03-19 14:42:35 +08:00
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