-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reroll #3
Comments
What do you mean with "reroll"? |
They mean generating the last message with the same prompt again, like what ChatGPT does already. |
Yes, you can do it by writing a function that simply recalls the createChatCompletion method on the backend with the same input. Note that you would also have to delete the last two messages obtained from the getLastThreeInteractions() function and from the database(here you would have to delete only the last object) when calling this function in order to generate a new response that is not based on the previous generated message. |
Hello again. Sorry if I'm taking up your time, I just don't understand this topic at all. If you don't want to waste time on this, then just close the request. In another case, the next question is, is this function suitable? - const interactionHistory = await getLastThreeInteractions(); const conversation = await getConversation(); return response; |
Is there a way to add a message reroll function after it has been sent by the bot? Or edit function?
The text was updated successfully, but these errors were encountered: