Nashex / gpt4-playground

Clone of OpenAI's ChatGPT and Playground environments to enable experimenting with API keys.
https://www.gpt4-playground.com/
MIT License
342 stars 110 forks source link

How can I limit the number of words that ChatGPT will read back from previous messages? #22

Open DangTieuQuy opened 9 months ago

DangTieuQuy commented 9 months ago

I want it to function like the regular user version of ChatGPT. In the regular version, ChatGPT will read back previous messages but only to a certain limit, not the entire conversation. This is to avoid situations where the previous conversation is too long and ChatGPT no longer has enough tokens to generate a response, leading to a refusal to respond. Additionally, reading back the entire conversation every time a new message is entered is also very token-consuming."