This repository has been archived by the owner on Feb 25, 2022. It is now read-only.
The model should return just the generated text, not the prompt text + generated text. #271
Labels
feature request
A feature that isn't implemented yet.
There is no reason we would want the prompted text + generated text since we already know the prompted text because we fed it to the input of the program. Returning prompted text + generated text can lead to some unexpected issues. For example, in my program I say that the generated text is the returnedText.substring(prompt.length). But this can fail if there are single quote chars "'" which get escaped and appear as "\'" in the output, meaning the start of the returned text will be later than expected.
The text was updated successfully, but these errors were encountered: