Skip to content

Commit

Permalink
Merge pull request streamlit#15 from Olshansk/main
Browse files Browse the repository at this point in the history
Update sidebar: Add a link to get an OpenAI API Key
  • Loading branch information
sfc-gh-jcarroll authored Jul 19, 2023
2 parents 05db961 + b0420c3 commit acbd453
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

with st.sidebar:
openai_api_key = st.text_input("OpenAI API Key", key="chatbot_api_key", type="password")
"[Get an OpenAI API key](https://platform.openai.com/account/api-keys)"
"[View the source code](https://github.com/streamlit/llm-examples/blob/main/Chatbot.py)"
"[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/streamlit/llm-examples?quickstart=1)"

Expand Down
1 change: 1 addition & 0 deletions pages/2_Chat_with_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

with st.sidebar:
openai_api_key = st.text_input("OpenAI API Key", key="langchain_search_api_key_openai", type="password")
"[Get an OpenAI API key](https://platform.openai.com/account/api-keys)"
"[View the source code](https://github.com/streamlit/llm-examples/blob/main/pages/2_Chat_with_search.py)"
"[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/streamlit/llm-examples?quickstart=1)"

Expand Down
1 change: 1 addition & 0 deletions pages/3_Langchain_Quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

with st.sidebar:
openai_api_key = st.text_input("OpenAI API Key", type="password")
"[Get an OpenAI API key](https://platform.openai.com/account/api-keys)"


def generate_response(input_text):
Expand Down

0 comments on commit acbd453

Please sign in to comment.