notunderctrl / gpt-3.5-chat-bot

Simple Discord chat bot built using the GPT 3.5 Turbo Model from OpenAI
https://youtu.be/CB76_GDrPsE
123 stars 122 forks source link

Now bots remembers what it said earlier (improved) #9

Closed NanduWasTaken closed 1 year ago

NanduWasTaken commented 1 year ago

I made it so that the bot remembers what it just said earlier before this pull request the bot only knows what the user has said it does not know what it said itself. I saw this problem and thought I could fix this . Then the question arrives why is it use full here is a example of why you would need the bot to remember it's own chats.


User: tell me a question. Bot: what is the colour of the sky. User: Blue Bot: I don't understand what did you said? (Lol it only has this much data [ tell me a question and blue ])


Now improved


Screenshot_2023-05-04-11-50-47-443

NanduWasTaken commented 1 year ago

Btw love your videos

NanduWasTaken commented 1 year ago

Please fix the multiple syntax errors found. Your code editor can help you point these out. Thanks.

That was fast yeah I will be doing that right now 😀

NanduWasTaken commented 1 year ago

Is it fineeee ?

notunderctrl commented 1 year ago

It doesn't seem like the name property is supported with createChatCompletion. Could you please refer to any documentation/guide you've used for this?