se;
            }

            function prepare_for_ai_turn() {
                if (is_ai_turn) return;
                is_ai_turn = true;
                round_id += 1;
                let newDiv = document.createElement("div");
                newDiv.className = "message_container message_bot";
                newDiv.innerHTML = '<div class="avatar_container avatar_bot"><div class="avatar_icon_bot"></div></div>'
                    + '<div>'
                    + '<button id="#toggleThoughtButton-' + roun