https://github.com/jw782cn/claude-streamlit
Easy to use! Claude API Streamlit Version! Build your project upon this!
https://github.com/jw782cn/claude-streamlit
chatgpt claude claude-api
Last synced: over 1 year ago
JSON representation
Easy to use! Claude API Streamlit Version! Build your project upon this!
- Host: GitHub
- URL: https://github.com/jw782cn/claude-streamlit
- Owner: jw782cn
- License: mit
- Created: 2023-07-17T03:05:02.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-02T04:21:45.000Z (almost 3 years ago)
- Last Synced: 2025-03-16T23:41:58.786Z (over 1 year ago)
- Topics: chatgpt, claude, claude-api
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 11
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Claude - Streamlit Version

- 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!
## Get Started
First, set up your local environment:
```bash
mkdir .streamlit
```
and create a file called `secrets.toml`, put your api-key inside:
```toml
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](https://promptlayer.com) to log all my openai requests. You can disable it in `config.py` file.
To run this project in localhost, run bash command below:
```bash
streamlit run claude.py
```
## More Screenshots

