Skip to content

The ChatGPT dialogue assistant built on Streamlit can be used without having to access the Internet and can be deployed in the cloud for free. Supports functions such as multi-window, voice communication, conversation retention, context presets, and parameter adjustment.

License

Notifications You must be signed in to change notification settings

saadinsta/ChatGPT-Assistant

 
 

Repository files navigation

🤖 ChatGPT-Assistant

The ChatGPT conversation assistant built on Streamlit is easy to use, not easy to disconnect, and supports the following functions:

  • Multiple chat windows
  • Preservation of historical conversations
  • Default chat context
  • Model parameter adjustment
  • Export conversations as Markdown files
  • ChatGPT voice communication (Edge browser on computer recommended)
  • To directly use the deployed project, you can configure the Openai Key in the settings options of the web page. At this time, historical conversations will not be retained. It is only valid in the user's current session and will not be shared by others.
  • Deploy the project by yourself. After configuring the Openai Key in Secrets, historical conversation records will be retained. At this time, it needs to be set as a private application to create a personal GPT assistant.

skills:

  • Double-click the page to directly locate the input field
  • Ctrl + Enter to quickly submit questions

deploy

Streamlit Cloud deployment (recommended)

It is easy and free to deploy and can be used without having to access the Internet. Please note that it is set as a private application. Please refer to the detailed steps provided by @Hannah11111.

  1. Fork this project to your personal Github repository.
  2. Register a Streamlit Cloud account and connect to Github.
  3. Start deploying the application. For details, please refer to the official tutorial.
  4. Configure Openai Key in the Secrets of the application. Please refer to the figure below for the specific format:
advanced-setting.png set-apikey.png
You can also configure it after deployment is complete.

Local deployment

  1. Establish a virtual environment (recommended)

  2. Clone the project (you can also manually download it locally)

git clone https://github.com/PierXuY/ChatGPT-Assistant.git
  1. Install dependencies
pip install -r requirements.txt
  1. Set API Key; set API Base (optional)
  • Write apikey = "Openai Key" in the .streamlit/secrets.toml file
  • Write the proxy interface in the .streamlit/secrets.toml file to achieve scientific use. The format is apibase = "agent interface address", and the description is as follows:
    1. You can directly use the proxy interface established by the project openai-forward, that is, apibase = "https://api.openai-forward.com/v1 ".
    2. You can refer to the openai-forward project to build the proxy interface and set it up yourself.
  1. Start the application
streamlit run app.py

illustrate

  • The user name and SVG format avatar can be customized in the custom.py file [(source)](https: //www.dicebear.com/playground?style=identicon).
  • Edit set_context.py in the deployed project source code to add preset context options. Automatically syncs to the app.
  • If possible, you can consider changing the file reading and writing logic in helper.py to cloud database operations to prevent History is lost.

Acknowledgments

About

The ChatGPT dialogue assistant built on Streamlit can be used without having to access the Internet and can be deployed in the cloud for free. Supports functions such as multi-window, voice communication, conversation retention, context presets, and parameter adjustment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 57.0%
  • JavaScript 31.5%
  • CSS 4.8%
  • HTML 2.9%
  • Groovy 2.6%
  • Shell 0.8%
  • Dockerfile 0.4%