File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 22I'LL MY BEST
33<p >Used tools Visual Studio Code, Sourcetree, Git Bash</p >
44<p >Used languages Python</p >
5- <p >Used libraries openai, streamlit</p >
5+ <p >Used chatbot api version GPT-3.5-turbo</p >
6+ <p >Used libraries openai, streamlit, watchdog</p >
Original file line number Diff line number Diff line change 11from openai import OpenAI
22import streamlit as st
33
4- # Lastest Edited | 2025 may 06th tue pm 04:32 utc+09:00
5- # X(Twitter) @shininggrail | Discord nerdmecha#1806 | GameJolt @nerdmecha
4+ # Lastest Edited | 2025 may 07th wed pm 09:30 utc+09:05
5+ # X(Twitter) @shininggrail | Discord nerdmecha#1806 | GameJolt @nerdmecha | Bluesky @nerdmecha.bsky.social
66
77with st .sidebar :
88 openai_api_key = st .secrets .get ("OPENAI_API_KEY" ) or st .text_input ("OpenAI API Key" , key = "chatbot_api_key" , type = "password" )
9- "[ Get an OpenAI API key]( https://platform.openai.com/account/api-keys)"
10- "[ View the source code]( https://github.com/streamlit/llm-examples/blob/main/Chatbot.py)"
11- "[]( https://codespaces.new/streamlit/llm-examples?quickstart=1)"
9+ # Get an OpenAI API key https://platform.openai.com/account/api-keys
10+ # View the source code https://github.com/streamlit/llm-examples/blob/main/Chatbot.py
11+ # Open in GitHub Codespaces https://github.com/codespaces/badge.svg https://codespaces.new/streamlit/llm-examples?quickstart=1
1212
1313st .title ("💬 Chatbot" )
1414st .caption ("🚀 Powered by OpenAI" )
15+
1516if "messages" not in st .session_state :
1617 st .session_state ["messages" ] = [{"role" : "assistant" , "content" : "How can I help you?" }]
1718
Original file line number Diff line number Diff line change 11pip install openai
2- pip install streamlit
2+ pip install streamlit
3+ pip install watchdog
You can’t perform that action at this time.
0 commit comments