How can I change the time to ask random questions? #63
Answered
by
ardha27
jonnytri53
asked this question in
Q&A
-
Hi, community. Every 3-4 minutes, the chatbot will randomly make up a question and answer it automatically. But I can't find out where it is. Can anyone help me? Thank you so much. |
Beta Was this translation helpful? Give feedback.
Answered by
ardha27
Jun 9, 2023
Replies: 2 comments 2 replies
-
As long as i remember, i didnt put that kind of logic inside my code |
Beta Was this translation helpful? Give feedback.
2 replies
-
I think its occur because the conversation is to long, and the chatbot/openai got confused on how to respond that long conversation |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I didnt add add error handling on that side. You can change the code so it only process message that contain text and not processing empty message
Yes you can. Maybe you can add time flag when the last coversation occured, if it already pass 2 mnt. Make a code that will send instruction to openai (on background) to generate a random topic to talk about
Yes, but you need to change record audio function. You can find library that can use microphone threshold so it only recording when there are someone speaking