Is the size/file limit with OpenAI API different than what you can send via ChatGPT in the browser?
How much are you going to pay for example to send a 1kb, 2kb, 4kb, 8kb, 16kb source file for analysis? If you are paying per "token", a 3kb file I have with like 70 lines of code might have 2-3 tokens per line if I understand what a token is, 210 tokens? Each token costs...
The relevant code is here https://github.com/ferrislucas/promptr/blob/3ae09d1cffbb6b93...
And here: https://github.com/ferrislucas/promptr/blob/3ae09d1cffbb6b93...