Commit Graph

830 Commits

Author SHA1 Message Date
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
yetone
3e7c059246 fix: tools priority (#1486) 2025-03-05 14:51:54 +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
brook hong
e1d2d825e2 fix: handle bedrock exceptions (#1483) 2025-03-04 23:47:28 +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
yetone
b01121bc39 fix: tools priority (#1478) 2025-03-04 00:44:33 +08:00
brook hong
6bd966e8e2 fix: pass context to provider for stream data parsing (#1475)
* fix: pass context to provider for stream data parsing

* fix: luatype

---------

Co-authored-by: yetone <yetoneful@gmail.com>
2025-03-04 00:20:27 +08:00
Hanchin Hsieh
c6d5527ea8 fix(llm_tools): fix permission checking to use relative path (#1473)
The has_permission_to_access function was incorrectly using absolute paths when checking against gitignore patterns. This could cause issues when the binary name matches the project root directory name, particularly in Go projects.

Changes:

- Extract relative path from absolute path by removing project root prefix

- Use relative path for gitignore pattern matching

- Add comments explaining the path handling logic

Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
2025-03-03 18:02:59 +08:00
yetone
6f13034845 fix: remove accidentally introduced files (#1472) 2025-03-03 15:18:35 +08:00
Jie Liu
3fae794ea8 fix: sub-folder creation on Windows (#1468) 2025-03-03 15:08:39 +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
Omar Crespo
6bbf9b3c42 doc: document disabled_tools option (#1471) 2025-03-03 15:01:58 +08:00
yetone
981edcaf44 fix: do not use tools aggressively (#1462) 2025-03-02 16:27:05 +08:00
Peter Cardenas
1428648609 feat: run python tool asynchronously (#1455) 2025-03-02 11:31:04 +08:00
Peter Cardenas
7704c21856 fix: do not change cwd for async bash command (#1456) 2025-03-02 11:30:16 +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
Gael PHILIPPE
e471f2347b feat(repo-map): add swift, java and php support (#1446) 2025-03-02 01:21:34 +08:00
yetone
615ccdbef3 fix: typo (#1451) 2025-03-02 01:19:25 +08:00
Omar Crespo
7d28e9b233 docs: add select model binding to readme (#1443) 2025-03-01 17:44:43 +08:00
yetone
7c9ee0760a docs: add mcp in todos (#1444) 2025-03-01 17:43:07 +08:00
yetone
0d592f440c Revert "refactor: message content (#1424)" (#1442)
This reverts commit ae8497faf1.
2025-03-01 13:25:51 +08:00
yetone
5bb055795f feat(suggestions): add tags around json (#1441) 2025-03-01 13:11:12 +08:00
Ben Burgess
86feaf3e38 docs: add sidebar toggle keymap (#1439) 2025-03-01 12:48:06 +08:00
Thomas Müller
a0af22df2e fix: custom vendors listed twice in model selection dropdown (#1435) 2025-03-01 12:47:13 +08:00
yetone
814bba5ef2 fix: edit supports think tag (#1430) 2025-02-28 15:24:36 +08:00
yetone
4cbba9f95e fix: lua test (#1429) 2025-02-28 14:57:01 +08:00
yetone
6d24da510e refactor: rename run_command llm tool to bash (#1428) 2025-02-28 14:50:41 +08:00
yetone
ae8497faf1 refactor: message content (#1424) 2025-02-28 14:43:39 +08:00
yetone
ebadba7420 fix: claude extended thinking (#1419) 2025-02-27 15:21:00 +08:00
yetone
77c5ffeb78 fix: lua type (#1418) 2025-02-27 12:55:19 +08:00
yetone
5abe579019 fix: retry when rate limited (#1417) 2025-02-27 12:52:58 +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
yetone
ae5a86103d feat(ci): close stable issues and prs (#1416) 2025-02-27 11:57:46 +08:00
yetone
1097f1dfae feat: update rag service image (#1415) 2025-02-27 11:54:38 +08:00
João Inez
64a59f9560 fix(rag_service): ignore leading slash gitignore patterns (#1412) 2025-02-27 11:46:03 +08:00
Xiaochao Dong
81067b31aa fix(copilot): fail to decode the empty token file (#1414) 2025-02-27 11:44:24 +08:00
yetone
9c9fadd256 fix(ci): use latest stable rust version (#1406) 2025-02-26 18:05:51 +08:00
yetone
812261200c fix: release ci (#1405) 2025-02-26 17:47:21 +08:00
Omar Crespo
44e673d132 fix checkhealth to run outside lazy (#1401) 2025-02-26 17:36:11 +08:00
yetone
6f98cb0ed6 fix: fetch llm tool no longer depends on system libssl.so (#1404) 2025-02-26 17:36:01 +08:00
nzlov
ef78c36e98 fix: openai env (#1400) 2025-02-26 17:35:49 +08:00
yetone
008e8c32b8 fix: adjust the priority of tools (#1402) 2025-02-26 13:58:03 +08:00
yetone
984fe877bf chores: remove debug logs (#1396) 2025-02-26 03:39:09 +08:00
yetone
d4e58f6a22 feat(health): check treesitter dependency (#1392) 2025-02-25 17:34:23 +08:00
Hanchin Hsieh
0d5861f80d feat: add Windows support for git directory scanning (#1391) 2025-02-25 17:03:30 +08:00
yetone
2b3a41e811 feat: implement a more flexible custom prompts solution (#1390) 2025-02-25 16:08:16 +08:00
yetone
481a44f041 fix: cursor applying diff (#1387) 2025-02-25 14:34:26 +08:00
yetone
e7ffb76499 fix: reuse parse_messages and remove parse_response_data and have a good function name for check env exists (#1386) 2025-02-25 13:52:13 +08:00
Peter Cardenas
901e1caa91 feat: run_command is run asynchronously (#1377) 2025-02-25 13:22:36 +08:00