-
Provide a simple Streamlit Version with ChatGPT and Claude API.
-
You can build on top of it to accelerate your project progress.
-
Deploy to Streamlit and share with your friends!
First, set up your local environment:
mkdir .streamlit
and create a file called secrets.toml
, put your api-key inside:
OPENAI_API_KEY = "your-openai-api-key"
OPENAI_API_BASE = "https://api.openai.com/v1"
PROMPTLAYER_API_KEY = "your-promptlayer-api-key"
ANTHROPIC_API_KEY = "your-anthropic-api-key"
Note: I used promptlayer to log all my openai requests. You can disable it in config.py
file.
To run this project in localhost, run bash command below:
streamlit run claude.py