-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Hello,
i'm using your code-narrator tool to generate a documentation for a SDK i'm developing. Great tool, but there is an unexpected behavior that happens when the files it process are very long in term of char length.
For example i have a file class with a total of 244630 chars (it's a class that has 7300 lines of code, so it's not very big but it's not so small in the same time), but when i look the documentation generated by the OpenAI API it looks uncomplete, it considers only the first imports of the class and it ignores everything else.
The CLI shows a warning when this situation happens and the message is the following:
"Warning - Content to long: I had to trim a file, only using first 6823 character".
So i'm guessing what happens when a file is too big for the OpenAI API? Your tool generates the documentation considering only the first batch of 6823 chars or it queries multiple times OpenAI in order to give it all the text necessary to create the response?
In any case, the documentation that generates it's not complete.
So... what i should do in this case?
Thanks