diff options
author | Civitasv <hscivitasv@gmail.com> | 2023-04-30 07:19:46 +0200 |
---|---|---|
committer | Civitasv <hscivitasv@gmail.com> | 2023-04-30 07:19:46 +0200 |
commit | 70acea30a58c55288c1d31c630801e9498b24114 (patch) | |
tree | deeff36849acce2ea0bffba5c1d319adc396ce3a /gui/streamlit_chat_app.py | |
parent | Merge branch 'main' of https://github.com/xtekky/gpt4free (diff) | |
download | gpt4free-70acea30a58c55288c1d31c630801e9498b24114.tar gpt4free-70acea30a58c55288c1d31c630801e9498b24114.tar.gz gpt4free-70acea30a58c55288c1d31c630801e9498b24114.tar.bz2 gpt4free-70acea30a58c55288c1d31c630801e9498b24114.tar.lz gpt4free-70acea30a58c55288c1d31c630801e9498b24114.tar.xz gpt4free-70acea30a58c55288c1d31c630801e9498b24114.tar.zst gpt4free-70acea30a58c55288c1d31c630801e9498b24114.zip |
Diffstat (limited to '')
-rw-r--r-- | gui/streamlit_chat_app.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/streamlit_chat_app.py b/gui/streamlit_chat_app.py index 68011229..3d18333a 100644 --- a/gui/streamlit_chat_app.py +++ b/gui/streamlit_chat_app.py @@ -76,7 +76,7 @@ user_input = input_placeholder.text_input( submit_button = st.button("Submit") if user_input or submit_button: - output = query(user_input, st.session_state['query_method']) + output = query(user_input, st.session_state['query_method'], st.session_state['proxy']) escaped_output = output.encode('utf-8').decode('unicode-escape') st.session_state.current_conversation['user_inputs'].append(user_input) @@ -94,6 +94,9 @@ if st.sidebar.button("New Conversation"): st.session_state['query_method'] = st.sidebar.selectbox("Select API:", options=avail_query_methods, index=0) +# Proxy +st.session_state['proxy'] = st.sidebar.text_input("Proxy: ") + # Sidebar st.sidebar.header("Conversation History") |