Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
abeshkek919
2y ago
0 comments
Share
Maybe because it's easier this way to estimate the data size before you send it to the API.
0 comments
default
newest
oldest
WiSaGaN
2y ago
I am not sure about that. You are already using API, should be trivial to use a tokenizer to get the number. Also prompt is just minor part of the cost. You have much less control in the completion part, which is the majority of the cost.
j
/
k
navigate · click thread line to collapse