Skip to content

jfgosselin/openai-assistant

Repository files navigation

Private OpenAI Assistant GTP

Quickly build a chat web app using the OpenAI Assistant API and Streamlit.

Usage

## OpenAI Configuration ##

# Your OpenAI API key https://platform.openai.com/api-keys 
API_KEY=sk-...
# Your OpenAI Assistant key (You need to create a GPT Assistant first)
ASSISTANT_KEY=asst_...
# Model name https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo
OPENAI_MODEL="gpt-4-turbo-preview"
# Use the instructions parameter to guide the personality of the Assistant and define its goals.
# https://platform.openai.com/docs/assistants/how-it-works/objects
INSTRUCTIONS=""

## Streamlit Configuration ##
PAGE_TITLE="My Page Title"
WELCOME_MESSAGE="Hello, I'm your Assistant. How can I help you?"
USER_PROMPT="What's your question?"
BEGIN_MESSAGE="Click 'Start Chat' to begin."
EXIT_MESSAGE="Exit Assistant"
START_CHAT_BUTTON="Start Chat"
DISCLAIMER="disclaimer.md"
LOGO="logo.png"
  • Build the docker image:
./build_image.sh
  • Run it:
docker-compose up -d 

If you want to quickly expose it to your family, friends, or colleagues, you can use ngrok.

About

An Open AI Assistant with a Streamlit Web App

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published