Joshua Sundance Bailey
commited on
Commit
·
70f15b7
1
Parent(s):
6da47ea
parameterization
Browse files
langchain-streamlit-demo/app.py
CHANGED
@@ -157,7 +157,7 @@ if provider_api_key := st.sidebar.text_input(f"{provider} API key", type="passwo
|
|
157 |
config=runnable_config,
|
158 |
)["text"]
|
159 |
except (openai.error.AuthenticationError, anthropic.AuthenticationError):
|
160 |
-
st.error("Please enter a valid {provider} API key.", icon="❌")
|
161 |
st.stop()
|
162 |
message_placeholder.markdown(full_response)
|
163 |
|
|
|
157 |
config=runnable_config,
|
158 |
)["text"]
|
159 |
except (openai.error.AuthenticationError, anthropic.AuthenticationError):
|
160 |
+
st.error(f"Please enter a valid {provider} API key.", icon="❌")
|
161 |
st.stop()
|
162 |
message_placeholder.markdown(full_response)
|
163 |
|