Skip to content

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

@cevaboyz

Description

@cevaboyz

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions