Skip to content

0.0.4.dev11: Multiple termination conditions not working #4704

Answered by un-hongly
un-hongly asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry, my bad. I replaced message.content with an empty string before sending it to the client side, which caused the termination conditions to be broken.

if isinstance(message, TextMessage):
        if message.source != chat_room.user_proxy.name:
            print(f"=> 📨 {message.content}")
            try:
                message.content = message.content.replace("COMPLETE>, "")
                message.content = message.content.replace("CANCEL >, "")

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@un-hongly
Comment options

Answer selected by un-hongly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants