500 Commits

Author SHA1 Message Date
Aaron Pham
9211babf09
fix(config): join and fold correctly (#148)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-22 02:09:36 -04: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
yetone
380a7254ae
chore: get git root using more advanced methods (#146) 2024-08-22 11:16:42 +08:00
MijikHna
480e35720d
added a check for git root query (#145) 2024-08-22 09:19:30 +08:00
yetone
a08a5b8dc1
refactor: reduce split windows (#143) 2024-08-22 03:38:22 +08: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
yetone
c41ad591a1
fix: selected code header text (#141) 2024-08-21 23:38:27 +08:00
yetone
58bc74d4f8
feat: add rounded opt (#139) 2024-08-21 23:31:11 +08:00
yetone
8a62e3e225
feat: add padding to title (#138) 2024-08-21 23:22:34 +08:00
yetone
f95feebd39
chore: scroll to end (#137) 2024-08-21 23:20:30 +08:00
Aaron Pham
76c7972fb1
chore: remove unaligned character with options to align text (#136)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-21 23:12:10 +08:00
yetone
5208fdc278
fix: default use global statusline (#133) 2024-08-21 22:43:00 +08:00
yetone
62928ace70
fix: remove status line (#132) 2024-08-21 22:31:56 +08:00
yetone
8eef44d45a
fix: set eob to a blank character (#131) 2024-08-21 22:15:31 +08:00
Aaron Pham
184b3ef5b8
fix(type): small typo (#130)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-21 22:14:30 +08:00
yetone
b3d14359b9
chore: delete everything related to nui-components (#129) 2024-08-21 22:10:49 +08:00
Hanchin Hsieh
83d067695e
chore(build): support build lua-tiktoken on Windows (#128)
Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
2024-08-21 21:59:13 +08:00
yetone
2e48d387a9
refactor: get rid of nui-components (#118) 2024-08-21 21:28:17 +08:00
yuchanns
b995e4aa7b fix(llm): parse_stream_data should take handler options
Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
2024-08-21 14:57:02 +08:00
yuchanns
0084d8b0cd fix(llm): incorrect condition to call parse_stream_data 2024-08-21 13:53:32 +08:00
Hanchin Hsieh
0743bda2b6
fix(llm): do not use parse_stream_data if nil (#124) 2024-08-21 13:11:00 +08:00
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 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