Hacker News new | ask | show | jobs
by WiSaGaN 920 days 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.