added warning

This commit is contained in:
Paul Gauthier 2024-04-28 15:18:53 -07:00
parent ec9fac2500
commit b3225a4070

View file

@ -143,15 +143,15 @@ class GUI:
st.title("Aider") st.title("Aider")
# self.cmds_tab, self.settings_tab = st.tabs(["Commands", "Settings"]) # self.cmds_tab, self.settings_tab = st.tabs(["Commands", "Settings"])
def do_settings_tab(self):
pass
def do_cmd_tab(self):
with st.sidebar:
# self.do_recommended_actions() # self.do_recommended_actions()
self.do_add_to_chat() self.do_add_to_chat()
self.do_recent_msgs() self.do_recent_msgs()
self.do_clear_chat_history() self.do_clear_chat_history()
# st.container(height=150, border=False)
# st.write("### Experimental")
def do_settings_tab(self):
pass
def do_recommended_actions(self): def do_recommended_actions(self):
with st.expander("Recommended actions", expanded=True): with st.expander("Recommended actions", expanded=True):
@ -290,7 +290,12 @@ class GUI:
# stuff a bunch of vertical whitespace at the top # stuff a bunch of vertical whitespace at the top
# to get all the chat text to the bottom # to get all the chat text to the bottom
self.messages.container(height=300, border=False) self.messages.container(height=300, border=False)
with self.messages: with self.messages:
st.warning(
"This browser version of aider is experimental. Please share feedback in [GitHub"
" issues](https://github.com/paul-gauthier/aider/issues)."
)
for msg in self.state.messages: for msg in self.state.messages:
role = msg["role"] role = msg["role"]
@ -353,7 +358,6 @@ class GUI:
self.do_messages_container() self.do_messages_container()
self.do_sidebar() self.do_sidebar()
self.do_cmd_tab()
user_inp = st.chat_input("Say something") user_inp = st.chat_input("Say something")
if user_inp: if user_inp: