if "chosen_llm" in st.session_state.keys(): # load the selected LLM or default LLM if no LLM chose # Set the chatbot instruction instruction = instructions_data[st.session_state['chosen_instruction_key']]['instruction']