feat: tokenizers (#429)

* feat: tokenizers

This reverts commit d5a4db8321.

* fix(inputs): #422

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2024-08-31 13:39:50 -04:00
committed by GitHub
parent 534b1e6bec
commit 0557deeab7
28 changed files with 3553 additions and 27 deletions

View File

@@ -127,6 +127,7 @@ end
M.state = nil
M.api_key_name = P.AVANTE_INTERNAL_KEY
M.tokenizer_id = "gpt-4o"
M.parse_message = function(opts)
return {
@@ -166,6 +167,7 @@ M.setup = function()
M.state = { github_token = nil, oauth_token = H.get_oauth_token() }
H.refresh_token()
end
require("avante.tokenizers").setup(M.tokenizer_id)
vim.g.avante_login = true
end