52 Commits

Author SHA1 Message Date
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
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
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
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
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
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