So, I have made a DiscordJS bot that has a slash command that basically allows you to ask a question to ChatGPT. It works but it doesn't reply to follow up questions. I have tested this by saying ("Remember this sentence: My new name is Jeff.", and ran the command again and said "What was the name I gave you"? and it responded with "You didn't give me a name".) I think I know what the problem is, using the ChatGPT api, when the command is ran, it generates a new chat, so it doesn't remember what it said previously. How can I fix this problem? Thank you.
#ChatGPT doesn't reply to follow up questions
2 messages · Page 1 of 1 (latest)
Sounds like you're not including the message history in your prompt.