Commit Graph

79 Commits

Author SHA1 Message Date
Aaron Pham
76dd441e25 chore(copilot): check for valid file in addition to plugin setup (#120)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-20 19:00:41 -04:00
Aaron Pham
175eff5cac feat(llm): copilot (closes #68) (#116)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-20 14:24:33 -04:00
Aaron Pham
7c7fd6e315 chore(llm): expose parse_and_call handler (closes #105) (#114)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-20 07:54:58 -04:00
Aaron Pham
94adc992a6 chore(llm): expose types for support functions (#113)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-20 07:43:53 -04:00
yetone
00f1e296b0 fix: do not write to invalid buffer (#112) 2024-08-20 17:58:05 +08:00
yetone
fcd7a82ff7 feat: use devicon instead of emoji (#111) 2024-08-20 17:51:14 +08:00
yetone
75ed191f43 fix: switch back to non-streaming update mode (#106) 2024-08-20 10:39:09 +08:00
Aaron Pham
5f74c54e55 chore: remove unused functions and simplify with utils (#103)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-19 19:15:58 -04:00
Aaron Pham
410824e357 fix(selection): hint not apply correctly (#101)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-19 18:26:25 -04:00
Aaron Pham
5d866379b6 chore(llm): expose prompt as variable (#100)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-19 16:10:06 -04:00
yetone
2d160fc5d7 fix: callback was not called in stream mode (#95) 2024-08-20 01:51:20 +08:00
yetone
940106d82b fix: do not insert the stream results into user code (#94) 2024-08-20 01:47:43 +08:00
Aaron Pham
60e3eac77e fix(stream): remove auto force stream (closes #90) (#91)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-19 12:09:04 -04:00
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 5c57daea2e.
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