#The AI is not remembering previous conversations.

4 messages · Page 1 of 1 (latest)

narrow basin
#
let response;
        try {
            response = await openai.createChatCompletion({
                model: "gpt-3.5-turbo",
                messages: updated.conversations[message.author.id]
            });
        } catch (error) {
            console.error(error);
        };

This is what updated.conversations[message.author.id] is:

{ role: 'user', content: ' hi dave.' },
  {
    role: 'assistant',
    content: "Alright mate, how's it going? Ready for a bit of a chat?"
  },
  { role: 'user', content: ' yeah' },
  {
    role: 'assistant',
    content: "Hey there! Dave at your service. What's cracking, mate?"
  }
#

it just constantly greets me and thinks ive never sent conversations before

north crystal
#

The reason chat works is because in each new message, the previous conversation is being sent so the model knows what has been discussed.