Commit Graph

571 Commits

Author SHA1 Message Date
yetone
48ae1fed78 feat: python llm tool (#1334) 2025-02-21 13:04:02 +08:00
Hanchin Hsieh
40ab7ef537 feat: add Kagi as web search engine provider (#1331) 2025-02-21 11:45:23 +08:00
yetone
581e61fae1 Revert "fix: remove stopinsert from lock_buf (#1323)" (#1330) 2025-02-21 03:32:14 +08:00
yetone
2d8f25efad fix separator (#1329) 2025-02-21 00:53:10 +08:00
yetone
fa89b147db fix: custom prompts (#1328) 2025-02-21 00:45:41 +08:00
yetone
ac86a3371e fix: default disable cursor planning mode (#1327) 2025-02-21 00:29:46 +08:00
Hans Pinckaers
a465c42ffa fix: remove stopinsert from lock_buf (#1323) 2025-02-20 23:39:05 +08:00
Thomas Müller
bf6f18d8ea fix: tool use when API returns sparse tool_use_list (#1322) 2025-02-20 23:36:25 +08:00
yetone
6177bbabfc fix: intelligently obtain filepath (#1321) 2025-02-20 16:45:42 +08:00
yetone
5966529997 fix: resp separator (#1320) 2025-02-20 16:14:25 +08:00
yetone
a6b24f3387 fix: use the current filepath when the filepath of code block cannot be found (#1319) 2025-02-20 16:02:52 +08:00
yetone
8f1226a74f fix: precise code block matching (#1318) 2025-02-20 15:46:10 +08:00
yetone
5b006624e6 feat: cursor planning mode enabled by default (#1316) 2025-02-20 13:06:17 +08:00
Omar Crespo
2991ca69a0 fix: include cursor-planning in the whitelist for dualboost (#1312) 2025-02-20 12:02:34 +08:00
Lucas Pereira
36f8db9629 feat: allow disabling tools for claude & copilot (#1300) 2025-02-20 00:00:10 +08:00
yetone
3476eabc4c fix: selected code container height (#1308) 2025-02-19 19:39:01 +08:00
yetone
09403a26df fix: ignore special buffers (#1307) 2025-02-19 19:25:59 +08:00
Nick Dichev
c1df9970bc feat(file_selector): add @buffers mention to add open buffers to chat context (#1303) 2025-02-19 18:22:07 +08:00
Hanchin Hsieh
97b938b47b feat(sidebar): add "commit" command (#1304)
- Extend AvanteSlashCommandType to include "commit"
- Add new command entry for "commit" with description "Commit the changes"
- Implement callback function for "commit" command
- Update input container logic to handle "commit" command
- Set request to "Please commit the changes" when "commit" command is used

Hanchin Hsieh <me@yuchanns.xyz>
2025-02-19 13:50:24 +08:00
Michael Gendy
9a191abce5 feat(model): add model selection (#961)
* feat(model): add model selection with keybinding

* lint

* rename model_select to model_selector
2025-02-19 02:01:21 +08:00
yetone
85370a5a1b fix: do not have bg (#1299) 2025-02-19 01:48:14 +08:00
zerogog
a17d4b00e2 fix: #1176 Gemini model in OpenRouter not finish their response (#1292) 2025-02-18 22:59:16 +08:00
guanghechen
63194b5208 feat(file_selector): support customized filepaths resolver (#1294) 2025-02-18 22:57:59 +08:00
Hanchin Hsieh
c1f1a89d74 feat(llm_tools): add git diff and commit functions (#1295)
Added two new functions to support git operations:

- git_diff: Get git diff for generating commit message (both staged and unstaged changes)

- git_commit: Commit changes with commit message and optional signing

These functions also support:

- GPG signing if available and configured

- Automatic staging of files if scope is provided

- User confirmation before committing

- Signed-off-by line with git user info

Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
2025-02-18 22:56:50 +08:00
yetone
603bd7f8ec optimize: live diff performance (#1297) 2025-02-18 22:41:58 +08:00
yetone
7f74d9f105 fix: simplifies highlights complex code (#1291) 2025-02-18 10:25:38 +08:00
yetone
b20b2caf22 fix: cursor planning mode bad cases (#1290) 2025-02-17 22:27:43 +08:00
yetone
b21d2632d3 feat: cursor planning mode (#1289) 2025-02-17 18:49:29 +08:00
phyer
b6ae4dfe7f fix: use absolute paths to handle gitignore
Co-authored-by: zhangkun9038@dingtalk.com <zhangkun9038@dingtalk.com>
2025-02-17 12:56:09 +08:00
8uff3r
f70eb1040c fix(providers/openai): check for vim.NIl on tool_calls (#1283) 2025-02-17 12:54:58 +08:00
kyrisu
6fd82f24dd fix: correct typo in answer field name in tavily format_response_body function (#1287) 2025-02-17 12:53:15 +08:00
Enes Kutay SEZEN
0a146dc63a docs: add reasoning_effort docs (#1286) 2025-02-17 12:52:22 +08:00
yetone
7fa7b0fa3b feat: support searchapi (#1284) 2025-02-17 00:36:00 +08:00
yetone
c60dc6c316 fix: case insensitive (#1275) 2025-02-14 12:28:39 +08:00
Hanchin Hsieh
1a4f2575d6 fix(utils): get non-nil filetype 2025-02-13 16:58:35 +08:00
yetone
25111c6df3 fix: incorrect minimize snippets (#1265) 2025-02-13 13:39:24 +08:00
yetone
763dbe064d fix: line content (#1264) 2025-02-13 13:23:28 +08:00
yetone
76c06ed277 fix: tools return json (#1263) 2025-02-13 11:54:54 +08:00
yetone
ce55d7ac9e refactor: better value name (#1261) 2025-02-13 01:39:02 +08:00
yetone
9bad591e8a fix: lowercase filepath bad case (#1259) 2025-02-12 22:59:15 +08:00
yetone
f8636315a5 fix: get filetype (#1258) 2025-02-12 22:19:55 +08:00
yetone
3a7277386f fix: mkdir for new file (#1257) 2025-02-12 22:02:12 +08:00
yetone
c89741e98b fix: base prompts (#1255) 2025-02-12 21:46:11 +08:00
yetone
456f7ccdab fix: search/replace tag bad cases (#1248) 2025-02-11 23:49:37 +08:00
yetone
72edea97cb optimize: prompts (#1247) 2025-02-11 23:11:03 +08:00
Thomas Müller
f660350cdc fix(tavily): remove time restriction of 1 day (#1241) 2025-02-11 15:57:38 +08:00
guanghechen
31c1701660 📝 docs(README): update customized file_selector example (#1242)
* 📝 docs(README): update customized file_selector example

* fix types
2025-02-11 15:57:15 +08:00
yetone
b73b3d7888 fix: file not found (#1243) 2025-02-11 15:54:57 +08:00
guanghechen
6d116fac36 feat(file_selector): support customized file selector method (#1204) 2025-02-11 13:49:00 +08:00
synic
0bfbd39ebc fix(sidebar): fix various focus errors (#1237)
This fixes a bunch of errors I was getting when switching away from the
avante sidebar and then back. Sometimes the sidebar would lose track of
the various windows, and you'd get errors like this:

```
|| stack traceback:
|| 	...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:2350: in function <...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:2349>
|| Error detected while processing BufLeave Autocommands for "<buffer=294>":
|| Error executing lua callback: ...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:2398: attempt to index field 'selected_files_container' (a nil value)
```

Or this one:

```
|| stack traceback:
|| 	...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:2350: in function <...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:2349>
|| Error detected while processing BufLeave Autocommands for "<buffer=294>":
|| Error executing lua callback: ...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:2398: attempt to index field 'selected_files_container' (a nil value)
```

This change does the following:

1. Proper order of cleanup in `reset()`
2. Proper cleanup in `create_selected_files_container()`
2025-02-11 13:42:23 +08:00