69 Commits

Author SHA1 Message Date
yetone
48fc35f978
fix: hide internal properties of config (#1036) 2025-01-05 18:27:23 +08:00
yetone
a0d05544af
Revert "fix(llm): call on_complete() function at callback (#952)" (#1018) 2025-01-01 20:48:17 +08:00
Changmin Choi
9f3793b579
fix(llm): call on_complete() function at callback (#952) 2024-12-24 22:42:12 +08:00
Christopher Brewin
8067cb0240
fix(file_selector): empty buffer and chat without file context. (#953) 2024-12-18 19:22:40 +08:00
Michael Gendy
e98fa46bec
feat(tokens): add token count display to sidebar (#956)
* feat (tokens) add token count display to sidebar

* refactor: calculate the real tokens and reuse input hints to avoid occlusion

---------

Co-authored-by: yetone <yetoneful@gmail.com>
2024-12-17 20:43:25 +08:00
Christopher Brewin
78dd9b0a6d
feat(context): add a ui for selecting and adding files to the sidebar as context (#912)
* feat(sidebar): supports select files

chore (context) update add type annotations to context functions

chore (sidebar) remove unused notify function call

refactor (sidebar) remove setting search file to file path

chore (sidebar) remove nvim_notify debugging api call

* feat (files) allow selecting a file by string via cmp suggestion menu

* chore (context) refactor to allow context using @file with a context view

* refactor (context) refactor seletected file types as an array of path and content

* refactor (config) remove unused configuration options

* refactor (sidebar) remove unused unbild key

* refactor (context) remove unused imports

* refactor (mentions) update mentions to support items with callback functions and removal of the underlying selection.

* fix (sidebar) add file context as a window that is visitable via the tab key

* refactor (file_content) remove file content as an input to llm

* feat (sidebar) support suggesting and applying code in all languages that are in the context

* feat (sidebar) configurable mapping for removing a file from the context.

* feat (context_view) configure hints for the context view for adding and deleting a file.

* feat (context) add hints for the context view.

* fix (sidebar) type when scrolling the results buffer.

* refactor (selected files) refactor llm stream to accept an array of selected file metadata

* refactor: context => selected_files

---------

Co-authored-by: yetone <yetoneful@gmail.com>
2024-12-12 01:29:10 +08:00
msvechla
6206998f24
chore: allow to pass raw curl args (#920)
This can be used to pass additional arguments to curl, which can be
helpful when working on new providers like bedrock, that can use curl
arguments for authorization.
2024-12-04 18:57:07 +08:00
yetone
9042f5f202
feat: enable diagnostics (#891) 2024-11-23 21:49:33 +08:00
yetone
2863473bbf
fix: do not ignore curl error (#877) 2024-11-20 01:33:28 +08:00
yetone
56ebcad7a8
fix: must not be called in a lua loop (#876) 2024-11-20 01:29:55 +08:00
yetone
3b390040f5
refactor: chat history based on project (#867) 2024-11-18 18:07:33 +08:00
Xinyao(Alvin) Sun
3051bfdf24
feat: add Dual Boost Mode for Enhanced LLM Responses with Multi-Provider Support (#854) 2024-11-17 15:54:01 +08:00
Aaron Pham
b872ac9c12
chore(docs): update correct formatting for dropdown (#817) 2024-11-07 01:15:37 -05:00
yetone
1e8abbf798
feat: memory 🧠 (#793) 2024-11-04 16:20:28 +08:00
Sayandip Dutta
e3df3b479f
fix(curl): show error when XDG_RUNTIME_DIR not writable (#785) 2024-11-03 16:44:12 +08:00
yetone
8c28e285ea
perf(sidebar): update the buffer more efficiently (#724) 2024-10-15 12:30:20 +08:00
Huite
2a72dfa711
feat: write curl body to a temporary JSON file (#673)
* Write curl body to a temporary JSON file.

* Remove temp file after use

* feat: use vim.fn.delete to delete files

---------

Co-authored-by: yetone <yetoneful@gmail.com>
2024-10-07 23:53:18 +08:00
Sapir Shemer
d74c9d0417
feat: supports openai o1-preview
* feat: make O1 models on openai work by handle non-streams & correct
parameters

* chore: set temperature automatically when using o1 models
2024-09-27 21:08:10 +08:00
yetone
22243bc316
feat: silence debug msg (#636) 2024-09-26 11:18:40 +08:00
yetone
0d90c047ef
feat: avante repo map rust crate (#628) 2024-09-26 03:45:49 +08:00
yetone
5aec0ba48b
fix: place the project context and memory context at the forefront (#619) 2024-09-23 19:09:04 +08:00
yetone
8e1018fef7
feat: repo map (#496)
* feat: repo map

* chore: remove breakline

* chore: remove spaces

* fix: golang public method

* feat: mentions for editing input
2024-09-23 18:52:26 +08:00
yetone
0642905c80
feat: specific provider for auto-suggestions (#569) 2024-09-12 14:23:00 +08:00
Aaron Pham
29e109e447
feat(api): support native chat mode (#541)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-05 02:43:31 -04:00
Aaron Pham
2b89f0d529
perf(anthropic): prompt-caching (#517)
bring back prompt caching support on Anthropic

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-04 03:19:33 -04:00
Aaron Pham
0d8098e4eb
fix(style): add parentheses (#471)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 05:12:07 -04:00
Aaron Pham
e8c71d931e
chore: run stylua [generated] (#460)
* chore: add stylua

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* chore: running stylua

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 04:19:54 -04:00
Aaron Pham
4ad913435c
feat(templates): avanterules filetype support (closes #254) (#466)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 04:09:13 -04:00
yetone
65e1e178f5
feat: automatic suggestion (smart tab) (#455) 2024-09-03 14:03:59 +08:00
yetone
77d344db77
chore: refine prompts (#434) 2024-09-01 02:52:16 +08:00
Aaron Pham
b09ff856b7
fix(copilot): support credentials saved with copilot.vim (#404)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-30 15:12:20 -04:00
Aaron Pham
b196627e86
chore(provider): use latest cohere models (#400)
Update prompts to correct grammar
concat with table.concat to avoid overhead

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-30 13:39:36 -04:00
yetone
104484f17c
fix: use the original prompts (#397) 2024-08-30 22:21:50 +08:00
yetone
5cf85d59bd
fix: ensure there is no overlap between code snippets (#396) 2024-08-30 20:43:26 +08:00
yetone
2997d4669a
refactor: refactor planning prompts to resolve line number issues and indentation issues (#382) 2024-08-30 18:53:49 +08:00
Aaron Pham
c635f73748
feat: pasting image within buffer (#331)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-28 14:43:14 -04:00
yetone
9dc00ecc10
fix: gemini (#323) 2024-08-28 22:17:00 +08:00
yetone
e3d90506ac
fix: editing mode prompts (#316) 2024-08-28 20:03:45 +08:00
Yusu Pan
44472f6932
refactor(llm): update edit mode prompt to avoid unnecessary code block markers (#301)
* refactor(llm): update edit mode prompt to avoid unnecessary code block markers

- Emphasize the format for presenting modified code snippets
- Avoid unnecessary code block markers and language identifiers

* refactor(llm): improve edit mode prompt
2024-08-28 16:25:00 +08:00
yetone
fe6518f6de
feat: editing mode (#281) 2024-08-27 22:44:40 +08:00
Aaron Pham
cf68572494
feat(clipboard): initial support (#279)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 06:57:29 -04:00
Aaron Pham
07af0a91f2
chore: persistent augroup name pattern (#250)
for better augroup management

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-26 22:31:57 -04:00
Jake
312543b680
feat(provider): initial error handling on claude (#221)
* fix: improve error handling for common issues

* fix: Providers.on_error for handling API errors

* Update lua/avante/providers/init.lua

---------

Co-authored-by: Aaron Pham <Aaronpham0103@gmail.com>
2024-08-25 21:26:19 -04:00
Aaron Pham
eaa373a7f6
fix(env): make sure to popup on nofile (fixes #211) (#212)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-25 11:29:55 -04:00
Aaron Pham
f99bf767b5
fix(highlight): allow override (#201)
update envvar parsing from cmdline

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-24 20:15:45 -04:00
Aaron Pham
a7d3defa3d
feat(llm): add support for parsing secret vault (#200)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-24 17:52:38 -04:00
Aaron Pham
d2775135a3
feat(llm): cohere support (#167)
should be good set of defaults now, one in US, one in canada, and
microsoft :/

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-23 09:36:40 -04:00
yetone
8c8d864637
fix: floating window highlights (#149) 2024-08-22 14:46:08 +08:00
Aaron Pham
8d52229f16
refactor(llm): cleanup providers for future ops (closes #134) (#147)
support allow_insecure and proxy ops

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-22 01:48:40 -04:00
jihunkim0
45a47075e5
feat: add Gemini support (#142)
Co-authored-by: Jihun Kim <jihun.kim.uk@gmail.com>
2024-08-22 00:52:25 +08:00