Aaron Pham
bd6ce346c1
fix(copilot): cached tokens to avoid rate limits ( closes #557 ) ( #746 )
2024-10-22 04:37:17 -04:00
Aaron Batilo
f92c3a60f3
fix: support legacy finish_reason ( #706 )
...
Many OpenAI compatible alternative servers are still returning a
`finish_reason` of `eos_token` instead of `stop`. This commit adds
support for that to support more of these servers/options.
2024-10-11 21:46:34 +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
Agustín Catellani
bcec0fa194
fix: initialize auto suggestions providers ( closes #571 ) ( #576 )
2024-09-15 10:56:18 -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
73730513d1
revert(gemini): revert to gpt-4o as tokenizers ( closes #499 ) ( #506 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 22:59:14 -04:00
Aaron Pham
e57a3f27df
chore(provider): use default value set in metaclass ( #503 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 21:56:52 -04:00
Aaron Pham
d7d476ddf5
chore(secrets): support table of string ( #500 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 21:47:01 -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
Aaron Pham
7266661413
feat(api): enable customizable calls functions ( #457 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-02 12:22:48 -04:00
Aaron Pham
7912070c6f
fix(gemini): check if json can be decoded ( #446 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-01 18:47:35 -04:00
Aaron Pham
0557deeab7
feat: tokenizers ( #429 )
...
* feat: tokenizers
This reverts commit d5a4db8321d232a1b9c0d86fc38e8dd516d15776.
* fix(inputs): #422
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
---------
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-31 13:39:50 -04:00
yetone
c324e902bb
chore: refine code ( #426 )
2024-08-31 23:08:12 +08:00
yetone
33192127a3
fix(claude): there can be no more than four cache controls ( #425 )
2024-08-31 23:04:51 +08:00
yetone
d5a4db8321
Revert tokenizers ( #423 )
...
* Revert "fix: add missing "with" in README"
This reverts commit bf1e7f1f17c8b82687b15c41e5a8104ea03f70cf.
* Revert "feat: tokenizers (#407 )"
This reverts commit d2095ba267abbfe169582708a4449e609aa9709b.
2024-08-31 22:45:31 +08:00
Aaron Pham
d2095ba267
feat: tokenizers ( #407 )
...
* feat: autobuild tiktoken lib and schenanigans
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
* chore: revert readme changes
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
* fix(build): windows
Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
* chore(plugin): early load commands and base setup
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
* fix(build): make sync
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
* feat: rust go vroom vroom
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
* feat: scuffed afaf implementation binding go brrrr
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
* chore: remove dups
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
* fix(tokens): calculate whether we should do prompt_caching (fixes #416 )
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
* chore: ignore lockfiles
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
* Update README.md
* Update crates/avante-tokenizers/README.md
* chore: remove unused
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
* chore: remove auto build
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
---------
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
Co-authored-by: yuchanns <me@yuchanns.xyz>
2024-08-31 07:19:59 -04:00
yetone
0c9e715829
perf(claude): the prompt caching is used by default ( #413 )
2024-08-31 13:54:49 +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
5ff5dcf72b
chore(openai): add back support functions for ease-of-use ( #402 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-30 13:49:08 -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
Aaron Pham
61acd714ba
fix(copilot): doesn't yet support image ( #398 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-30 11:59:40 -04:00
yetone
104484f17c
fix: use the original prompts ( #397 )
2024-08-30 22:21:50 +08:00
yetone
fc1bcda822
fix: copilot message format ( #395 )
2024-08-30 19:25:04 +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
yetone
ec4d2eee0b
fix: copilot config path ( #392 )
2024-08-30 15:13:52 +08:00
Aaron Pham
483f71dba4
feat(provider): support copilot ( #381 )
...
* feat(provider): add back support for copilot
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
* docs: add acknowledgement
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
---------
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-29 23:36:39 -04:00
Aaron Pham
5c1861d93f
feat(azure): support vision ( #354 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-29 01:48:40 -04:00
Aaron Pham
93ca541262
feat(gemini): support vision model ( closes #294 ) ( #351 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-29 01:26:26 -04:00
Aaron Pham
76a5ccda5f
chore(gemini): allow overrides from config ( #350 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-29 01:17:31 -04:00
Aaron Pham
8a683b053b
fix(style): reformat ( #344 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-28 19:56:11 -04:00
Daniel Rodriguez
bb5411cd9a
fix(openai): first chunk emit errors ( #337 )
2024-08-28 18:36:50 -04: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
Aaron Pham
755c15c0bd
chore(clipboard): separate logic to save as base64 and files ( #329 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-28 11:52:12 -04:00
yetone
9dc00ecc10
fix: gemini ( #323 )
2024-08-28 22:17:00 +08:00
yetone
bfa203018e
fix: remove copilot provider ( #318 )
2024-08-28 20:51:20 +08:00
Aaron Pham
cd9412514e
fix(llm): local-first check ( #297 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 18:37:19 -04:00
Aaron Pham
943d3f20b5
fix(local): ensure to set login to true in local ( fixes #135 ) ( #295 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 18:05:47 -04:00
Aaron Pham
01d12ccf98
fix(provider): key error ( fixes #291 ) ( #292 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 13:54:16 -04:00
Aaron Pham
7f9b69c3bb
fix(copilot): make sure to set integration id ( #287 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 13:00:30 -04:00
Aaron Pham
a4929104cb
fix(env): skip for setting up from local ( #286 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 12:57:53 -04:00
Aaron Pham
d7be4a59c2
fix(openai): enable image support on OpenAI platform only ( fixes #282 ) ( #284 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 11:35:25 -04:00
Aaron Pham
971e61b2c8
feat(openai): support pasting image from clipboard ( #280 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 07:06:20 -04: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
77551ce734
fix(cmdline): popup check on fail ( #277 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 05:13:51 -04:00
Aaron Pham
f258089199
fix(env): set api via input popup ( fixes #274 ) ( #276 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 04:46:23 -04:00
Aaron Pham
561f2f3380
perf(copilot): make signin and check keys API async ( #275 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 04:43:44 -04:00
Aaron Pham
64f2c54822
fix(login): make sure to set on all branch ( #268 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 03:00:18 -04:00
Aaron Pham
a8022896a2
fix(login): make sure to set var on env ( fixes #264 ) ( #266 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 02:43:06 -04:00