| prompt = """Format: | |
| # # Add debug information to column 1 if enabled | |
| if genparam.INPUT_DEBUG_VIEW == 1: | |
| with col1: # Access first column | |
| bot_name = genparam.BOT_2_NAME if chat_history == st.session_state.chat_history_2 else genparam.BOT_3_NAME | |
| bot_avatar = genparam.BOT_2_AVATAR if chat_history == st.session_state.chat_history_2 else genparam.BOT_3_AVATAR | |
| st.markdown(f"**{bot_avatar} {bot_name} Prompt Data:**") | |
| st.code(prompt_data, language="text") | |
| To be more akin to: | |
| st.session_state.chat_history_1.append({"role": "user", "content": user_input, "avatar": genparam.USER_AVATAR}) | |
| Append it to a new session_state called debug_view | |
| # # Add debug information to column 1 if enabled | |
| if genparam.INPUT_DEBUG_VIEW == 1: | |
| for message in st.session_state.debug_view: | |
| if message["role"] != "user": | |
| with st.chat_message(message["role"], avatar=genparam.BOT_2_AVATAR): | |
| st.markdown(message['content']) | |
| So that it can be displayed in col1.""" |