openai / tiktoken

tiktoken is a fast BPE tokeniser for use with OpenAI's models.
MIT License
12.52k stars 856 forks source link

Keep getting tiktoken errors when running my code #355

Closed Byzzee-gh closed 1 month ago

Byzzee-gh commented 1 month ago

Full disclosure: I am a complete noob with coding.

I am a fan of the youtuber DougDoug and I am trying to set up a program he wrote that allows me to speak to an AI and have it speak back to me verbally. He has the code publicly available so I got it and did the necessary steps of obtaining the API's that I needed, but when I run it I get this: image

I am attempting to make sense of it, but haven't been able to make heads or tails of my problem. The link provided in the NotImplementedError doesn't take me anywhere. I've tried some googling but am not sure how to apply the advice others received for their cases to mine. Like I said, total noob.

Not sure if it helps but here is a link to the code: https://github.com/DougDougGithub/Babagaboosh

hauntsaninja commented 1 month ago

Use a newer version of tiktoken