DocsGPT icon indicating copy to clipboard operation
DocsGPT copied to clipboard

Estimate costs

Open buger opened this issue 2 years ago • 2 comments

Hello!

Would be great to have an option to run ingest script in dry run mode, so it will print how many tokens it will cost, before calling OpenAI API.

Also can you give any idea on how to estimate it based on docs and metadatas fields https://github.com/arc53/docsgpt/blob/main/scripts/ingest_rst.py#L36?

Thanks!

buger avatar Feb 04 '23 12:02 buger

Great suggestion! Thank you, its totally posibble

Current example with docs from pandas coster around 2$ i think no more than 4

dartpain avatar Feb 04 '23 13:02 dartpain

I'll take this issue!

jaredbradley243 avatar Feb 05 '23 18:02 jaredbradley243

@buger This is almost finished. Code is waiting to be merged. Let me know what you think when you try it!

jaredbradley243 avatar Feb 07 '23 02:02 jaredbradley243