5 ms·
Show HN: GPT Calculator – Calculate the token count and cost of your GPT Prompt
- Cyphase 4y agoCan't load the site, there's a TLS connection error. Firefox says PR_CONNECT_RESET_ERROR. cURL and wget also give errors.
- bilater 4y agomaybe you hit the rate limit...can you try again?
- Zolomon 4y agoNice way to capture prompts to see what others are working on.
- bilater 4y agolol - dont care.
- lionkor 4y agoWhat do you mean?
- hgsgm 4y agoOP is just promoting his chat bot; doesn't care about user privacy
- KyeRussell 4y agoI’d interpret this as OP not caring about this cynical accusation.
- nickthegreek 4y agoWell they could state that they aren't storing submissions if that was the case. But they didn't.
- bilater 4y agoor perhaps OP thinks so little of this take they didn't bother to reply to the point
- Cyphase 4y agoHere's a way to do it in your own code: https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb https://github.com/openai/openai-cookbook/blob/main/examples...
- bilater 4y agoyup - I use tiktoken under the hood. :)
- akiselev 4y agoThe AI MLM has arrived.
- liminal-dev 4y agoDoesn't work for me sadly.
- bilater 4y agoSorry - the rate limit got hit. Please try again.
- deleted 4y ago[deleted]
- liminal-dev 4y agoIt works now. It's a nice little tool. Would be great to have the ability to test the cost of a response as well, and optionally combine the costs of the input/output.
- cyanf 4y agoWhat's the difference between this and OpenAI's tool? https://platform.openai.com/tokenizer https://platform.openai.com/tokenizer
- artdigital 4y agoIf this is for ChatGPT/OpenAI GPT models, why not just use the official tokenizer? https://platform.openai.com/tokenizer https://platform.openai.com/tokenizer
- computerex 4y agoBecause it's really an ad.
- WA 4y agoThe major costs come from continuing a conversation in a chat. You pay for the entire existing conversation, because that becomes the prompt for the next question. This tool doesn't reflect that.
- KyeRussell 4y agoNot all use of GPT models is conversational. In fact, I’d put money on most uses where you’re paying per token (read: not ChatGPT) aren’t conversational.
- hombre_fatal 4y agoYou can do this in pure javascript with the cl100k data. Plenty of impl on github to copy and paste.
- quickthrower2 4y agoAnother AI HN submission that times out :shrug:
- sammy2255 4y agoStuck on Loading
- bilater 4y agosorry - hit a rate limit. Should be working now.
- bilater 4y agoApologies to anyone hit with Loading. The rate limit was reached a lot quicker than I expected and it brought down everything while I slept. Back to working now.