tiktokenizer icon indicating copy to clipboard operation
tiktokenizer copied to clipboard

Online playground for OpenAPI tokenizers

Results 11 tiktokenizer issues
Sort by recently updated
recently updated
newest added

See https://openai.com/api/pricing/

开发者你好,能不能添加一个"TOKENS 切割功能"方便按特定量分批输入大长文。

Changing tokenizer resets the textarea. I just lost my example! :) Steps to reproduce: Go to https://tiktokenizer.vercel.app/ Enter anything into user content input box: ![image](https://github.com/dqbd/tiktokenizer/assets/96808/d789d35c-1848-4fa3-b95a-15d64728ab5a) Now change the tokenizer from...

Output tokens are more expensive in OpenAI's API. In the app, even though users can add assistant messages, all tokens are priced as if they're inputs. This behavior has been...

As shown below: ![screenshot 2023-11-21 at 10 41 58@2x](https://github.com/dqbd/tiktokenizer/assets/7106086/94f779d6-aaf4-4789-b2ee-e6dd5253e3b8) ![screenshot 2023-11-21 at 10 42 20@2x](https://github.com/dqbd/tiktokenizer/assets/7106086/be90ca75-9c61-42f5-b0f9-d4c1de8e5a5f) text: ``` ddOpenAI's large language models (sometimes referred to as GPT's) process text using tokens,...

Hello, Trying to run tiktokenizer from the app folder and I'm getting the following error: ``` Error: Element type is invalid. Received a promise that resolves to: [object Promise]. Lazy...

I got a PR suggesting to add a link to your Tiktokenizer app from our OpenAI tokenization tutorial: https://github.com/openai/openai-cookbook/pull/604 Would this be ok with you? I don't want to send...

### The video will explain it all: https://github.com/dqbd/tiktokenizer/assets/1267282/71622bc1-16a5-461e-811a-c089ace30265

This is a hack which converts `huggingface/tokenizers` JSON configuration into a format acceptable by openai/tiktoken and @dqbd/tiktoken. This is mostly a stop-gap solution / interesting research avenue in order to...