summaryrefslogtreecommitdiffstats
path: root/gui/streamlit_chat_app.py
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-30 13:12:54 +0200
committerGitHub <noreply@github.com>2023-04-30 13:12:54 +0200
commitea9ff431d21f5868e703452eab9405cfc3402b73 (patch)
tree6ae9d5c6c977bcb289426321f200110f36c4c6c4 /gui/streamlit_chat_app.py
parentMerge pull request #307 from ezerinz/main (diff)
parentFeat: add proxy settings in GUI and library. (diff)
downloadgpt4free-ea9ff431d21f5868e703452eab9405cfc3402b73.tar
gpt4free-ea9ff431d21f5868e703452eab9405cfc3402b73.tar.gz
gpt4free-ea9ff431d21f5868e703452eab9405cfc3402b73.tar.bz2
gpt4free-ea9ff431d21f5868e703452eab9405cfc3402b73.tar.lz
gpt4free-ea9ff431d21f5868e703452eab9405cfc3402b73.tar.xz
gpt4free-ea9ff431d21f5868e703452eab9405cfc3402b73.tar.zst
gpt4free-ea9ff431d21f5868e703452eab9405cfc3402b73.zip
Diffstat (limited to 'gui/streamlit_chat_app.py')
-rw-r--r--gui/streamlit_chat_app.py5
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")