import streamlit as st def generate_prompt(user_message: str, file_context=None): system_content = """\ You are an experienced Python coding assistant. Keep each answer under 200 words. """ task = (f" {user_message} ") context = (f" {st.session_state["file_content"]} ") return system_content + task + context