98 Commits

Author SHA1 Message Date
William Heryanto
369410bdb1
fix: Gemini not reaching end state () 2025-01-05 21:11:04 +08:00
hat0uma
0536c6e552
fix(copilot): Prioritize xdg_config for OAuth token references on Windows () 2025-01-05 20:45:25 +08:00
yetone
3ec847e3cb
fix(ci): lua lint () 2025-01-05 17:11:15 +08:00
Larry Lv
ec5d1abf34
fix(openai): support all o series models ()
Before this change, since `max_completion_tokens` was not set for `o` series models, the completion request will time out sometimes. This makes sure it converts the `max_tokens` parameter to `max_completion_tokens` for `o` series models.

I tested this change with `gpt-4o-mini`, `o1-mini` and `o3-mini`, and they all still work as expected.
2025-01-05 13:23:33 +08:00
Sam Jones
9abbec4c5b
fix(copilot): refreshing copilot tokens ()
* fix: wait for github copilot token to refresh before calling completion

* feat: timer to refresh copilot token to prevent 401
2024-12-29 22:58:13 -08:00
kernitus
0d62ffd1cb
fix: azure o1 unsupported options () 2024-12-24 22:40:59 +08:00
yetone
01e05a538b
fix: more reasonable error reporting () 2024-12-18 23:16:41 +08:00
msvechla
6206998f24
chore: allow to pass raw curl args ()
This can be used to pass additional arguments to curl, which can be
helpful when working on new providers like bedrock, that can use curl
arguments for authorization.
2024-12-04 18:57:07 +08:00
Arkuna
57311bf8cd
fix: Get copilot refresh token asynchronously () 2024-12-01 14:00:42 +08:00
Aaron Batilo
e60ccd2db4
feat: enable streaming for o1 models ()
As of a few days ago, o1 models support streaming responses. Please see:
https://community.openai.com/t/openai-o1-streaming-now-available-api-access-for-tiers-1-5/1025430
2024-11-24 17:28:27 +08:00
Shourya Sharma
9d2599df4d
refactor: ♻️ Updated API parsing logic for vertex AI to throw specific error ()
Co-authored-by: Shourya Sharma <shourya.sharma@complyadvantage.com>
2024-11-23 12:47:29 +08:00
yetone
3beed68157
fix: copilot url join () 2024-11-19 06:20:42 +08:00
yetone
e65be50a0a
fix: claude parse response () 2024-11-19 06:03:03 +08:00
yetone
cf2312abbc
fix: provider must be set () 2024-11-19 05:14:04 +08:00
yetone
9891b03656
fix(openai): user and assistant roles should be alternating () 2024-11-17 03:49:02 +08:00
yetone
ff85b9c1e2
refactor: remove redundant local field to facilitate provider configuration () 2024-11-17 02:55:40 +08:00
yetone
4acdcb6e8b
fix: provider inherited_from () 2024-11-17 01:09:33 +08:00
yetone
dfc51b3247
feat: add url_join () 2024-11-17 00:39:03 +08:00
yetone
a3e5053d55
fix: preset vendors missing many fields () 2024-11-16 02:09:14 +08:00
Shourya Sharma
839a8ee25a
feat: Added vertex AI provider for orgs using gemini ()
Co-authored-by: Shourya Sharma <shourya.sharma@complyadvantage.com>
2024-11-15 00:34:58 +08:00
insects
ecaf850859
fix(compat): filter out non value and not user message ()
Co-authored-by: Aaron Pham <Aaronpham0103@gmail.com>
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
2024-11-07 05:38:56 -05:00
insects
ec9b00db8b
fix(openai): add backward compat for get_user_message ()
Co-authored-by: ming.chen <ming.chen@shopee.com>
Co-authored-by: Aaron Pham <Aaronpham0103@gmail.com>
2024-11-07 02:16:19 -05:00
Christopher Brewin
c516883b99
fix(copilot): refresh token before sending the request ()
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
2024-11-06 00:07:02 -05:00
yetone
1e8abbf798
feat: memory 🧠 () 2024-11-04 16:20:28 +08:00
Aaron Pham
5c02a5d846
chore(type): update providers and claude hints () 2024-10-27 02:27:10 -04:00
Aaron Pham
bdbbdec88c
feat(tokenizers): support parsing from public URL () 2024-10-27 02:17:35 -04:00
Aaron Pham
bd6ce346c1
fix(copilot): cached tokens to avoid rate limits (closes ) () 2024-10-22 04:37:17 -04:00
Aaron Batilo
f92c3a60f3
fix: support legacy finish_reason ()
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 ) () 2024-09-15 10:56:18 -04:00
Aaron Pham
2b89f0d529
perf(anthropic): prompt-caching ()
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 ) ()
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 ()
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 ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 21:47:01 -04:00
Aaron Pham
0d8098e4eb
fix(style): add parentheses ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 05:12:07 -04:00
Aaron Pham
e8c71d931e
chore: run stylua [generated] ()
* 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 ) ()
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 ()
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 ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-01 18:47:35 -04:00
Aaron Pham
0557deeab7
feat: tokenizers ()
* feat: tokenizers

This reverts commit d5a4db8321d232a1b9c0d86fc38e8dd516d15776.

* fix(inputs): 

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 () 2024-08-31 23:08:12 +08:00
yetone
33192127a3
fix(claude): there can be no more than four cache controls () 2024-08-31 23:04:51 +08:00
yetone
d5a4db8321
Revert tokenizers ()
* Revert "fix: add missing "with" in README"

This reverts commit bf1e7f1f17c8b82687b15c41e5a8104ea03f70cf.

* Revert "feat: tokenizers ()"

This reverts commit d2095ba267abbfe169582708a4449e609aa9709b.
2024-08-31 22:45:31 +08:00
Aaron Pham
d2095ba267
feat: tokenizers ()
* 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 )

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 () 2024-08-31 13:54:49 +08:00
Aaron Pham
b09ff856b7
fix(copilot): support credentials saved with copilot.vim ()
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 ()
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 ()
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 ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-30 11:59:40 -04:00
yetone
104484f17c
fix: use the original prompts () 2024-08-30 22:21:50 +08:00