openai-react-chat icon indicating copy to clipboard operation
openai-react-chat copied to clipboard

Button to redo gpt reply

Open azaghlou opened this issue 2 years ago • 2 comments

Thanks for the awesome app. Is it possible to add the ability to redo the last gpt reply? Even better would also be the ability to edit your own message and recieve new response like in chatgpt, but I'm not sure how feasible that is with the API.

azaghlou avatar Dec 14 '23 16:12 azaghlou

Hi,

Is it possible to add the ability to redo the last gpt reply?

I have this listed as Regenerate. I haven't implemented it yet since I don't use that feature much.

Even better would also be the ability to edit your own message and recieve new response like in chatgpt, but I'm not sure how feasible that is with the API.

This is possible with the API. The updated conversation can be sent to the API to get a new response.

elebitzero avatar Dec 18 '23 03:12 elebitzero

Thanks for your reply. It's good to know that both features are implementable.

I played around with the App, and I'd say the biggest problem is the "model's maximum context length is 4097" message. I was trying to write a story and it was actually quite short.

I wonder how does chatgpt gets around the context length limitation, does it just ignore older messages?

azaghlou avatar Dec 18 '23 09:12 azaghlou