Commit Graph

875 Commits

Author SHA1 Message Date
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
Thomas Müller
64b919274e fix: skip more binary files than just audio/video in RAG scan (#1547) 2025-03-10 16:16:14 +08:00
yetone
558a7bbd38 fix: close_from_input keybinding types (#1546) 2025-03-10 15:54:01 +08:00
Jae-Won Chung
9fa2d9e51d fix: remove sidebar.close_from_input default keybinding (#1536)
* Remove <c-d> from default insert mode keybinding

* Check `close_from_input ~= nil` before keymap

* Default `close_from_input` to `nil`

* Update README.md keybinding defaults

* Try to pass type check
2025-03-10 15:31:13 +08:00
wan
f9025ff415 fix: skip audio and video files during directory scan in RAG Service. (#1509) 2025-03-10 15:23:56 +08:00
yetone
cdbfe79097 docs: for ollama (#1545) 2025-03-10 02:43:12 +08:00
yetone
750ee80971 feat: add ollama as supported provider (#1543)
* feat: add ollama as supported provider

*This implementation is only working with `stream = true`*
- Uses the actual ollama api and allows for passing additional options
- Properly passes the system prompt to api

Use ollama as provider in opts like this:
opts = {
        debug = true,
        provider = "ollama",
        ollama = {
                api_key_name = "",
                endpoint = "http://127.0.0.1:11434",
                model = "qwen2.5-coder:latest",
                options = {
                        num_ctx = 32768,
                        temperature = 0,
                },
                stream = true,
        },

* fix: ollama types

---------

Co-authored-by: jtabke <25010496+jtabke@users.noreply.github.com>
2025-03-10 02:23:56 +08:00
Canopus
4976807a33 fix: thrown error when trying to use codebase with no buffer opened (#1541)
* Fix - Fix thrown error when trying to use @codebase with no buffer opened

* Style - Fix stylua formatting in repo_map and sidebar

* Fix - Restore code selection handling in sidebar
This was a mistake on my part while rushing to make the PR. I deleted an
unrelated commit that got sent by mistake, and during the second review,
I didn't notice that this important code selection functionality was
removed. The code has now been properly restored.
2025-03-10 00:20:43 +08:00
yetone
05b3b843c8 fix: selected code (#1542) 2025-03-10 00:17:24 +08:00
moecasts
32665974ee feat: add neotree shortcut tip (#1537) 2025-03-09 15:43:39 +08:00
yetone
a0e0924730 feat: carry recently viewed files as context (#1538) 2025-03-09 15:42:31 +08:00
adasauce
02fb470140 feat: support cmd: loading api keys for google search APIs (#1532)
refactor environment loading logic into Utils and use it for existing
provider loading, and web search where appropriate.
2025-03-09 15:01:49 +08:00
yetone
868c136574 refactor: remove use_xml_format (#1535) 2025-03-09 14:58:30 +08:00
Lukas Nakamura
510bf2ff35 docs: update README with the AvanteClear command (#1528) 2025-03-08 21:16:30 +08:00
yetone
3741460541 optimize: make relative (#1529) 2025-03-08 21:15:07 +08:00
brook hong
4766e76a31 feat: add key mappings to close sidebar in input_container (#1494)
* add key mappings to close sidebar in input_container
* add autocmd to enter normal mode on leaving input_container
* add autocmd to enter insert mode on entering input_container
2025-03-08 12:55:13 +08:00
yetone
8344d3ee3d feat: support customizing system_prompt in the configuration (#1527) 2025-03-08 12:51:49 +08:00
yetone
d75094b815 fix: bedrock (#1524)
* fix: bedrock

* fix: bad variable name

* fix: missing metatable
2025-03-08 02:17:28 +08:00
yetone
4d983532a1 fix: more readable value name (#1521) 2025-03-07 20:27:11 +08:00
yetone
6c7c5464ca feat: cwd ad project root (#1517) 2025-03-07 11:53:09 +08:00
Umut Önder
dbe31a866a Fix attempt to call field 'is_o_series_model' in Copilot provider (#1514) 2025-03-07 11:14:36 +08:00
yetone
11305eaacd fix: bedrock (#1516) 2025-03-07 11:12:59 +08:00
yetone
a13e5dca1d fix: remove resource schema (#1512) 2025-03-07 00:43:57 +08:00
yetone
25dee44de9 fix: bedrock (#1511) 2025-03-07 00:30:30 +08:00
yetone
8620ea3e12 refactor: summarize memory (#1508) 2025-03-07 00:12:57 +08:00
Francesco Tassi
2b0e7e09ae fix: ignore git crypt files (#1465)
* Exclude file patterns from git-crypt in pathspec

git-crypt could be used to encrypt files in a repository.
These files should be excluded from the pathspec to avoid
sending them to the RAG service.
git-crypt relies on a filter attribute in the .gitattributes so we can
use ls-files to get the files that are encrypted.

* Add some logging about ignored file

The logging is quite verbose, given it logs every ignored file but I
think it useful for the end user to have an explicit feedback about
sensitive files that are being ignored.

* Fix lint errors

* Avoid Shell=true for subprocess.run() (S604)

Removing S604 "Avoid Shell=true for subprocess.run()" we get S603 "subprocess call: check for execution of untrusted input"
I dit not found a way to fix this issue, so I'm putting it in the ignore list.
I also used shutil to retrieve the absolute git path to run the subprocess commands.
2025-03-06 18:34:12 +08:00
teleivo
dec794ac85 fix: contradictory lazy.nvim installation spec (#1506)
setting `lazy=false` means eagerly loading the plugin while `event =
"VeryLazy"` suggests the plugin should be lazy loaded

https://lazy.folke.io/spec/lazy_loading

> Plugins will be lazy-loaded when one of the following is true:
>
> * The plugin only exists as a dependency in your spec
> * It has an event, cmd, ft or keys key
> * config.defaults.lazy == true

see example

6c3bda4aca/lua/lazy/example.lua (L58-L60)
2025-03-06 18:33:52 +08:00
yetone
5aa55689ff fix: bedrock claude do not support prompt caching (#1507) 2025-03-06 18:31:56 +08:00
Sávio Carlos Martins Costa
6d39e06f57 fix: return statement of the "Utils.has", as "pcall" never returns nil (#1501) 2025-03-06 08:21:22 +08:00
yetone
662b6a547b fix: cache prompt count (#1499) 2025-03-06 00:08:59 +08:00
Vinicius Zenha
cad42ac00f Update README.md (#1497) 2025-03-05 22:25:35 +08:00
yetone
93c2e1fd83 feat: cache tool use (#1496) 2025-03-05 19:43:18 +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
nzlov
7919fe010b docs: add custom tool (#1487)
* docs: add custom tool

* fix: add func params
2025-03-05 19:24:57 +08:00
yetone
f6484a0e61 feat: add glob llm tool (#1495) 2025-03-05 19:22:22 +08:00
yetone
093c09b760 fix: search keyword ignore vcs when using rg (#1493) 2025-03-05 18:55:23 +08:00
yetone
cc078a5337 feat: support redacted thinking (#1492) 2025-03-05 18:53:24 +08:00
Jie Liu
a652db7608 fix: add instruct for creating new files (#1485)
* Add instruct for creating new files

* Update lua/avante/templates/planning.avanterules

Co-authored-by: Peter Cardenas <16930781+PeterCardenas@users.noreply.github.com>

---------

Co-authored-by: Peter Cardenas <16930781+PeterCardenas@users.noreply.github.com>
2025-03-05 17:04:29 +08:00
yetone
ce3c47b6ec fix: allow reset rag service chromadb (#1491) 2025-03-05 17:01:00 +08:00
yetone
7578f13d8d feat: upgrade rag service image version (#1488) 2025-03-05 16:22:25 +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
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