Commit Graph

157 Commits

Author SHA1 Message Date
yetone
5aa55689ff fix: bedrock claude do not support prompt caching (#1507) 2025-03-06 18:31:56 +08:00
Grimaldi Baptiste
232d4b1340 feature model selection custom display name (#1477)
* feature model selection custom display name

Added an option for a custom display name
I had the need for this option for multiple similar custom model
configurations where I wanted to have more indicative titles.

* linting error
2025-03-05 19:25:48 +08:00
Francesco Tassi
232c9a635c feat: improve avante-rag-service container execution (#1448)
* Refactor Docker mount to mount only user home

Mounting the whole filesystem expose the user to security risks,
considering the container is running are root.

This mounts only the user home directory in the container, to mitigate
the security risks. The user home directory is mounted in read only mode
to even reduce the risks of accidental or malicious modifications.

Mounting the whole should allow the user to have multiple neovim instances runinng at
the same time and sharing the same rag_service.

Also the container is started with the --rm flag to remove it after it stops.

* RAG mount point is not configurable

* Remove useless filter.lua file

* Use Path to join paths

This should be more safe than just concatenating strings.
2025-03-05 16:18:52 +08:00
Jorge Luis Suarez
e408b820c8 feat: add Nix as Rag service runner option (#1480)
* feat: add nix as option for RAG runner

* fix: remove default embedding model

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* stylua format

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-03-04 23:50:24 +08:00
Limbo Peng
ab63b52ffb feat: add Brave Search as web search engine provider (#1481)
* feat: add Brave Search as web search engine provider

* docs: update README
2025-03-04 23:47:04 +08:00
nzlov
de7cccd089 feat: add support for ollama RAG providers (#1427)
* fix: openai env

* feat: add support for multiple RAG providers

- Added provider, model and endpoint configuration options for RAG service

- Updated RAG service to support both OpenAI and Ollama providers

- Added Ollama embedding support and dependencies

- Improved environment variable handling for RAG service configuration

Signed-off-by: wfhtqp@gmail.com <wfhtqp@gmail.com>

* fix: update docker env

* feat: rag server add ollama llm

* fix: pre-commit

* feat: check embed model and clean

* docs: add rag server config docs

* fix: pyright ignore

---------

Signed-off-by: wfhtqp@gmail.com <wfhtqp@gmail.com>
2025-03-04 11:07:40 +08:00
Peter Cardenas
de1e6a4212 feat: add custom tools config (#1461)
* chore: add string literal types for tool params, and returns

* feat: add custom tools config
2025-03-03 15:06:13 +08:00
Peter Cardenas
ac9d2b3888 feat: disable tools with config (#1459)
* chore: use missing generic for AvanteLLMToolFunc

* feat: add disabled_tools config
2025-03-02 11:29:23 +08:00
yetone
6d24da510e refactor: rename run_command llm tool to bash (#1428) 2025-02-28 14:50:41 +08:00
Matthew Brookhart
e69e7eceeb feat: support Microsoft Entra ID authentication (#1274)
Co-authored-by: Matthew Brookhart <Matthew Brookhart>
2025-02-27 12:00:36 +08:00
Peter Cardenas
afa674c6fd chore: prefer not to use function assignment (#1381) 2025-02-25 12:08:03 +08:00
yetone
02b4fbf4b1 feat: support claude 3.7 (#1376) 2025-02-25 02:49:21 +08:00
Peter Cardenas
3dd1854cd4 feat: add custom shell command config (#1361) 2025-02-23 21:55:37 +08:00
billyvinning
43bb2b3273 fix: invalid default model name for vertex provider (#1352) 2025-02-23 01:37:37 +08:00
yetone
fd84c91cdb feat: RAG service (#1220) 2025-02-23 01:37:26 +08:00
yetone
b04bffa441 fix: types (#1344) 2025-02-22 23:24:20 +08:00
Hanchin Hsieh
25a6bd6e59 fix(search): filter kagi results to only include web pages (t == 0)
Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
2025-02-21 14:18:31 +08:00
yetone
45604b25f8 feat: support edit and retry user request (#1335) 2025-02-21 14:00:53 +08:00
Hanchin Hsieh
40ab7ef537 feat: add Kagi as web search engine provider (#1331) 2025-02-21 11:45:23 +08:00
yetone
ac86a3371e fix: default disable cursor planning mode (#1327) 2025-02-21 00:29:46 +08:00
yetone
5b006624e6 feat: cursor planning mode enabled by default (#1316) 2025-02-20 13:06:17 +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
guanghechen
63194b5208 feat(file_selector): support customized filepaths resolver (#1294) 2025-02-18 22:57:59 +08:00
yetone
7f74d9f105 fix: simplifies highlights complex code (#1291) 2025-02-18 10:25:38 +08:00
yetone
b21d2632d3 feat: cursor planning mode (#1289) 2025-02-17 18:49:29 +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
yetone
7fa7b0fa3b feat: support searchapi (#1284) 2025-02-17 00:36:00 +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
guanghechen
6d116fac36 feat(file_selector): support customized file selector method (#1204) 2025-02-11 13:49:00 +08:00
Amin Roosta
c07d396e30 feat(web_search_engine): adds google as a provider (#1226) 2025-02-10 13:21:55 +08:00
yetone
152d0c609c feat: serpapi (#1198) 2025-02-06 20:10:55 +08:00
yetone
d1cc23fa54 fix: multiple tool use histories and disable tools (#1185) 2025-02-06 02:46:52 +08:00
yetone
1437f319d2 feat: tools (#1180)
* feat: tools

* feat: claude use tools

* feat: openai use tools
2025-02-05 22:39:54 +08:00
ccolorado
1726d32778 fix: typo on config comment (#1161) 2025-02-04 17:06:56 +08:00
ken
43269cc07f Feat: Add Amazon Bedrock provider (#1167) 2025-02-03 22:33:25 +08:00
yetone
ec3593aac6 Revert "fix(file_selector): make sure to flatten selected_paths if picker yie…" (#1172) 2025-02-03 22:01:15 +08:00
yetone
d1286e7bfb feat: enable token counting (#1157) 2025-02-02 01:27:12 +08:00
Christopher Brewin
0a273c2f5d feat(sidebar): move quit and close key mappings into config values. (#979) 2025-02-01 09:48:11 -05:00
Aaron Pham
692c168e5b fix(file_selector): make sure to flatten selected_paths if picker yields a single string (#1153) 2025-02-01 09:46:01 -05:00
Seong Yong-ju
c5d7d542f3 feat(file_selector): add snacks picker as a file selector 2025-01-24 12:52:06 +08:00
Adam Stracener
d6b371e75f fix(config.lua): Remove warning about using Copilot for auto_suggestions (#1125) 2025-01-24 11:34:56 +08:00
yetone
330ccb7e91 fix: not mandatory to replace the provider of the suggestion (#1121) 2025-01-23 12:15:40 +08:00
yetone
76f60794c3 fix: release the cursor when generating (#1109) 2025-01-21 00:04:48 +08:00
Adam Sherwood
e4c86e317a feat: add File Selector Provider for mini.pick. (#1107) 2025-01-20 14:38:04 +08:00
阿楠
1660ca5c51 fix 'bug: custom vendor configuration is broken (#1089)' (#1090)
Assigning M.vendors to an empty table {} at line 267 causes the metatable set for M at line 340 to lose its effect. As a result, accessing M.vendors does not retrieve the correct vendors from the configuration but instead always accesses an empty table.
2025-01-16 16:56:57 +08:00
Austin Horstman
ea5706f52f fix(get_provider): fix nil access table for vendors (#1074)
If calling method without setup, we need to instantiate the vendors
table so the method can properly extend the providers table into
vendors.
2025-01-15 18:40:35 +08:00
yetone
bd8afce3b0 feat: tab flow (#1077) 2025-01-14 15:39:57 +08:00
Aaron Pham
ba9f014b75 fix(auto_suggestion_provider): default to claude in copilot (#1072) 2025-01-12 00:56:21 +08:00
Ethan Howard
c3e7ba0be0 feat: respect git ignore for autosuggestions (#994) 2025-01-11 23:00:19 +08:00