#reset dialog
25 messages · Page 1 of 1 (latest)
1 prompt (api call) = 1 conversation
You cant send 2 prompts and have it remember both
The whole way how it remembers the conversation is that you send the whole conversation in 1 API call every time (yes it increases tokens used)
I need it to be like this: Dialogue reset, I forgot what we were talking about.
Write a message to start a new conversation
is there an opposite to openai.ChatCompletion.create?
that is, reset the dialogue so that the bot does not remember what it was told earlier.
@civic flicker
no you send one openai.ChatCompletion.create
thats all that the bot will remember
your next openai.ChatCompletion.create is completely clear, unless you include the previous conversation inside it
I am making a telegram bot where there is only one response
then you send one openai.ChatCompletion.create and thats 1 conversation
the next openai.ChatCompletion.create is the next conversation which does not remember the previous
dude, I only have one openai.ChatCompletion.create in my code, I need to complete the dialogue via telegram. there will be a button and when pressed, the command will be executed, but I don’t know what code is needed for it
its completed when you send it
there is no reset
everytime you send it its new conversation
The only way to make it remember is to include the whole conversation in your openai.ChatCompletion.create
"messages": [{"role": "user", "content": "Hello!"},{"role": "assistant", "content": "Hello you!"},{"role": "user", "content": "How are you?"}]
here it would remember that I said hello
"messages": [{"role": "user", "content": "How are you?"}]
here it would NOT remember that I said hello
it doesn't complete when i send him 2 question he repeats answer for 1 and says 2 answer
dont quite understand
some example?
"messages": [{"role": "user", "content": "Question1"},{"role": "assistant", "content": "answer1"},{"role": "user", "content": "Question2"}]
this should give you answer to question 2 while remembering question1 and that its already answered
"messages": [{"role": "user", "content": "Question2"}]
this would not remember question1 or answer1
just completely new question and conversation
I guess if I understand correctly, you might be doing this, after you already had answer1
"messages": [{"role": "user", "content": "Question1"},{"role": "user", "content": "Question2"}]
and this would probably give you answer to question1 and also question2
because you didnt include {"role": "assistant", "content": "answer1"} in the middle
it does not remember that it already answered
in other words, you need to include every bot completion in the "messages", if you want it to remember it
Russian bot, this is not mine. there is a button to reset the dialog. when you click, the bot forgets what you told him earlier. try to translate yourself
so when you click the reset button, you should reset your "messages"
and the next time it will send just "messages": [{"role": "user", "content": "Question1"}]
without anything else
I need the code for this button to reset the dialog!!!
your first prompt was
"messages": [{"role": "user", "content": "Hello"}]
you got a completion back {"role": "assistant", "content": "Hello there! How can I assis you today?"}
If with the next message you want it to remember that
you send again
"messages": [{"role": "user", "content": "Hello"}, {"role": "assistant", "content": "Hello there! How can I assis you today?"},{"role": "user", "content": "next question"}]
if user clicks reset before that
you only send
"messages": [{"role": "user", "content": "next question"}]
thats how you reset
by not including the previous "messages"
the longer the conversation, the more tokens you will send
because you need to include the whole conversation if you want the bot to remember it