Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
luke_cq
on April 5, 2023
|
parent
|
context
|
favorite
| on:
OpenAI Tokenizer
I desperately want to be able to get a concrete amount of tokens for my prompt before making a call - things like this make it very hard to request the right amount of max_tokens from longer prompt/generation pairs.
sharkjacobs
on April 5, 2023
|
next
[–]
https://github.com/openai/tiktoken
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: