Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in install_tiktoken() : could not find function "install_tiktoken" #9

Open
cevaboyz opened this issue Apr 10, 2024 · 0 comments

Comments

@cevaboyz
Copy link

Hello @umatter, I'm getting this error on a fresh installation:

install.packages("devtools")
devtools::install_github("umatter/OpenAIR")


# load the package
library("TheOpenAIR")

# register your api key
openai_api_key("MY_KEY")

> install_tiktoken()
Error in install_tiktoken() : could not find function "install_tiktoken"

The count_token() function works correctly

> test_string <- "This is a test string to estimate the cost of the API call"
> TheOpenAIR::count_tokens(test_string)
[1] 13

Can I assue that count_token() superseded the num_tokens() function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant