Is it a good way of refreshing ConversationHandlers? #5204
Unanswered
BlizzardJedi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The code below was written by ChatGPT. It is meant to get all the
ConversationHandlers available and refresh their state. GPT inserted calls ofhard_reset_chat_session(...)in every handler start. It seems to be a good try by GPT, but I wonder, if this code is legal. First of all, it uses some "_"-prefixed methods and onegetattrwith a hardcoded string argument. Looks a bit dirty for me, but what I really want to know is if it correctly processes different users? And perhaps there are some other pitfalls.Beta Was this translation helpful? Give feedback.
All reactions