When inputting to GPT-4 at once, I get the error "The message you submitted was too long, please reload the conversation and submit something shorter."
Details
In my fairly simple React app, when I output output.text, the number of lines reached 6 million, and of course, most of it was node_modules. When I excluded descriptions unrelated to the app, such as node_modules, yarn.lock, and .git/, it reduced to about 1,500 lines, but I still got the same error.
Now, I've declared to send one file at a time, and by repeatedly copying and pasting, it seems that the files can be read.
I will now type in the code for an application, file by file. The following text is a Git repository with code. The structure of the text are sections that begin with ----, followed by a single line containing the file path and file name, followed by a variable amount of lines containing the file contents. The text representing the Git repository ends when the symbols --END-- are encounted. Any further text beyond --END-- are meant to be interpreted as instructions using the aforementioned Git repository as context.
Suggestion
It might be useful to have features like the following:
A function to exclude large code, binary code, and code unrelated to the app
A function to divide text files according to the maximum character count of each GPT API, and add a prompt to that effect
By the way
With GPT-4, I could send about 400 lines at a time (4-5 files).
Also, every time I sent it, the contents of the file were properly explained, and when I sent it up to --END--, it even created a summary for me, which was impressive.
From now on, I would like to verify whether GPT can handle code maintenance and adding new features.
The text was updated successfully, but these errors were encountered:
It might also be possible to apply a soft form of minification, that cuts and removes more fat, preserves just enough structure and meaning for GPT4 to still understand (e.g. removing all whitespaces, some vowels, many non-critical words in comments (e.g. a, to, the...) etc.
I wouldn't be surprised if there wasn't already such an algorithm somewhere.
Thank you for the wonderful tool!
Problem
When inputting to GPT-4 at once, I get the error "The message you submitted was too long, please reload the conversation and submit something shorter."
Details
In my fairly simple React app, when I output output.text, the number of lines reached 6 million, and of course, most of it was node_modules. When I excluded descriptions unrelated to the app, such as node_modules, yarn.lock, and .git/, it reduced to about 1,500 lines, but I still got the same error.
Now, I've declared to send one file at a time, and by repeatedly copying and pasting, it seems that the files can be read.
Suggestion
It might be useful to have features like the following:
By the way
With GPT-4, I could send about 400 lines at a time (4-5 files).
Also, every time I sent it, the contents of the file were properly explained, and when I sent it up to --END--, it even created a summary for me, which was impressive.
From now on, I would like to verify whether GPT can handle code maintenance and adding new features.
The text was updated successfully, but these errors were encountered: