Commit Graph

185 Commits

Author SHA1 Message Date
yetone
cd13eeb7d9 fix: revert max_completion_tokens to max_tokens (#1741) 2025-03-27 16:53:55 +08:00
guanghechen
0b4a493d60 improve: support to customize the keymaps for cancelling the editing (#1730)
* improve: support to customize the keymaps for cancelling the editing

* docs: update README
2025-03-26 21:58:03 +08:00
yetone
39787969c7 fix: memory (#1718) 2025-03-26 00:45:54 +08:00
yetone
a2aec079c9 feat: extract str_replace tool (#1710) 2025-03-25 18:43:57 +08:00
yetone
8c4244b940 fix: decrease history max tokens (#1709) 2025-03-25 16:07:45 +08:00
Omar Crespo
bae5275705 feat: add stop sequence (#1652) 2025-03-21 19:34:33 +08:00
yetone
1c8cac1958 feat: history manager (#1644) 2025-03-19 17:28:05 +08:00
yetone
191d7b8783 feat: claude text editor tool (#1631) 2025-03-19 00:09:49 +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
Florian Engelhardt
3b86549485 Add extra headers for OpenAI (#1615) 2025-03-17 17:51:08 +08:00
yetone
63605a55a3 fix: increase history max_tokens (#1609) 2025-03-17 04:38:08 +08:00
yetone
79bf76ed72 fix: increase max_tokens (#1607) 2025-03-17 03:29:44 +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
d307467771 feat: hide in model selector (#1574) 2025-03-13 01:39:59 +08:00
yetone
8b37cfc306 feat: system_prompt can be a function (#1571) 2025-03-12 19:57:17 +08:00
yetone
9e3e8d06a2 feat: get custom tools from a function (#1567) 2025-03-12 17:57:09 +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
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
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
yetone
868c136574 refactor: remove use_xml_format (#1535) 2025-03-09 14:58:30 +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
yetone
8620ea3e12 refactor: summarize memory (#1508) 2025-03-07 00:12:57 +08:00
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