165 Commits

Author SHA1 Message Date
Aaron Pham
6ba2143fed
fix(buffer): ignore dressing as input (#89)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-19 11:52:52 -04:00
Aaron Pham
02eb39ae48
feat(llm): support local LLM (#86)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-19 08:35:36 -04:00
Aaron Pham
2463c896f1
fix(claude): sending state manually (#84)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-19 06:11:02 -04:00
Aaron Pham
ba06b9bd9d
refactor: cleanup utils and expose lazy (#83)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-19 05:40:57 -04:00
Aaron Pham
7e6705c0b1
fix(hint): correct variable and setup on init (#82)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-19 05:11:38 -04:00
yetone
c5b8662835
Revert "fix: construct handler opts in the parse function" (#79)
This reverts commit 5c57daea2e9cfbeed428d4d01d71bd8b08549953.
2024-08-19 11:24:49 +08:00
yetone
5c57daea2e
fix: construct handler opts in the parse function (#78) 2024-08-19 11:22:10 +08:00
yetone
b71e43d69e
fix: missing event_state in handler options of LLM stream function (#77) 2024-08-19 11:18:59 +08:00
Yuexun
29dabc4768
feat(ui): add config to turn off hints popup (#75) 2024-08-19 10:40:33 +08:00
Aaron Pham
2700cad921
feat(providers): add support for custom vendors (#74)
* feat(providers): add support for custom vendors

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

* fix: override configuration not setup

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

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-19 10:20:29 +08:00
Aaron Pham
5fa4f701dd
refactor(ai): streaming chunks to avoid excessive redraw. (#73)
* perf(ai): token streaming with quick refactoring

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

* fix: window resize and AvanteSwitchProvider

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

* revert: config change

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

* chore: return early

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

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-18 15:03:25 -04:00
franklin
0fddfc7d8f
feat: support groq (#70)
* adding groq to config

* updated readme with groq
2024-08-19 00:11:39 +08:00
yetone
834bb9ea77
feat: change chat record prefix (#71) 2024-08-19 00:05:13 +08:00
Chao Li
6bef72e287
feat: support deepseek (#69)
The DeepSeek API reduces costs through disk caching, and DeepSeek-Coder-V2-0724 achieves GPT-4-Turbo-0409 level code capabilities with excellent math and reasoning skills.
2024-08-18 21:33:45 +08:00
Aaron Pham
b979b3d8ce
chore(init): gated neovim version (#67)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-18 18:28:11 +08:00
yetone
43beba9957
fix: cannot change buf name (#66) 2024-08-18 18:09:03 +08:00
Aaron Pham
58af2b7f92
fix(ui): use dressing.nvim for better input support (#58)
* fix(ui): use dressing.nvim for better input support

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

* chore: add small docs on setting up dependencies

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

* chore: update docs

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

* revert: add back quick docs for setup

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

* chore: update readme

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

* Update lua/avante/ui/dressing.lua

* Update lua/avante/ui/dressing.lua

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-18 06:07:29 -04:00
Aaron Pham
8e503ef114
fix(event): make sure to create object during on tab enter (#65)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-18 06:06:17 -04:00
yetone
1f1aed36bd
fix: check if renderer is nil (closes #63) (#64) 2024-08-18 05:54:57 -04:00
Hanchin Hsieh
c8a764b3a1
fix(env): remove fallback and respect one env (#60)
Make sure to set the corresponding env.
2024-08-18 05:54:29 -04:00
Aaron Pham
d885bd9680
fix(ui): set selection per buffer and remove spinner (closes #32) (#62)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-18 17:36:30 +08:00
yetone
c19ea9a48a
feat: add wrap line configuration (#59) 2024-08-18 13:48:19 +08:00
yetone
c25521070a
feat: refine prompts for openai (#57) 2024-08-18 04:47:47 +08:00
Aaron Pham
c4e26a8767
feat(experimental): add section for behaviour (#55)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-18 04:31:24 +08:00
Aaron Pham
ad09ea6058
fix(claude): use correct key (#56)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-18 04:17:16 +08:00
Aaron Pham
af1f51455e
feat(ui): add envvar popup with warnings (#54)
* feat: add support for input popup of envvar

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

* chore: update README and ignore certain filetypes for popup

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

* fix: readme doesn't support nested callout

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

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-18 04:04:40 +08:00
yetone
f4ab995515
feat: refine prompts again (#53) 2024-08-18 02:52:27 +08:00
yetone
095c65689d
feat: refine prompts (#52) 2024-08-18 02:46:19 +08:00
yetone
aa9810bfeb
chore: celebration emoji (#50) 2024-08-18 02:20:12 +08:00
Aaron Pham
1aaf6a8227
feat(diff): autojump (#48)
centralized configuration

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-18 02:14:02 +08:00
Aaron Pham
95b42e835f
chore(cmd): add manual refresh and update types (#44)
* chore(cmd): add manual refresh and update types

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

* chore: add refresh mapping

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

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-18 01:41:34 +08:00
yetone
d0d4f8a27c
fix: do not use gmatch (#43) 2024-08-17 22:56:25 +08:00
yetone
f66b5c6784
fix: snippets missing empty lines (#42) 2024-08-17 22:52:57 +08:00
Aaron Pham
83402e4a2d
chore(types): add annotations for block and refresh on winchanged (#40)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-17 22:39:59 +08:00
yetone
3dca5f4764
feat: ask selected code block (#39) 2024-08-17 22:29:05 +08:00
yetone
dea737bf05
fix: codeblocks have not been synchronized (#38) 2024-08-17 19:53:45 +08:00
yetone
c3c47264f0
fix: shortcut key tips (#37) 2024-08-17 15:55:34 +08:00
yetone
0e0d9d6f7d
fix: do not jump to the view window (#36) 2024-08-17 15:52:12 +08:00
yetone
80feab88cc
fix: no wrap (#34) 2024-08-17 15:34:37 +08:00
yetone
f8cbc88424
refactor(ui): bounding popover (#13) (#29)
* refactor(ui): bounding popover (#13)

* refactor(ui): bounding popover

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

* chore: update readme instructions on setting up render-markdown.nvim

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

* chore: align code style

* fix: incorrect type annotation

* fix: make it work with mouse movement

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

* fix: focus correct on render

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

* fix: make sure to close the view

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

* chore: cleanup cursor position

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

* docs: add notes on rc

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

* fix: make sure to apply if has diff

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

* fix: do not simulate user input

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Co-authored-by: yetone <yetoneful@gmail.com>

* fix(autocmd): make sure to load tiktoken on correct events (closes #16) (#24)

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

* feat(type): better hinting on nui components (#27)

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

* feat: scrollview and tracking config and lazy load and perf (#33)

* feat: scrollview and tracking config and lazy load and perf

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

* fix: add back options

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

* revert: remove unused autocmd

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

* fix: get code content

* fix: keybinding hint virtual text position

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Co-authored-by: yetone <yetoneful@gmail.com>

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-17 15:14:30 +08:00
Hanchin Hsieh
de22014785
fix: should not force to use OPENAI_API_KEY with provider azure (#20) 2024-08-16 13:47:43 +08:00
fish
78be877a3e
fix: invalid response err (#19) 2024-08-16 13:40:41 +08:00
Aaron Pham
e3c162aad3
perf: make load ultra ultra fast (#14)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-16 09:08:26 +08:00
Aaron Pham
f7de743fe0
feat(tiktoken): automatic build (#9)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-15 20:59:01 +08:00
yetone
d92d26bf2a
fix: make the result buffer unmodifiable (#10) 2024-08-15 20:58:01 +08:00
yetone
b4d40802a8
feat: more like Cursor 2024-08-15 20:07:44 +08:00
yetone
cca2c23dad
feat: more like Cursor 2024-08-15 19:04:15 +08:00
yetone
c8b7c832a5
feat: add sidebar.lua 2024-08-15 17:57:19 +08:00
yetone
036ce7e77e
Revert "fix: escape original_content" (#8)
This reverts commit 1634abb9cd29a3d8265fd440e14fe0f56d92d6a9.
2024-08-15 16:01:56 +08:00
Wey Gu
2951217a68
docs: macOS tiktoken core install (#7)
also fix azure default api_version
2024-08-15 16:00:18 +08:00