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?