8000 GitHub - JAlcocerT/Streamlit-MultiChat: Interact with Local and Comercial LLMs via Streamlit UI
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

JAlcocerT/Streamlit-MultiChat

Repository files navigation

Streamlit-MultiChat

Many LLMs - One Streamlit Web App

OpenAI | Anthropic | Ollama | Groq

GitHub Release GitHub Release Date

YouTube Channel Maintained GitHub last commit GitHub repo size

A custom Streamlit Web App to Chat with the latest LLMs and get a per use cost instead of a fixed monthly price.

Features

Use many large language models: OpenAI, Anthropic, Open / Local LLM's with one Streamlit Web App.

During the process, I also explored: SliDev PPTs, ScrapeGraph, DaLLe, Streamlit Auth and OpenAI as Custom Agents

Getting Started

The Project is documented here

Important

You have few alternatives to run this project locally:

uv sync #as per pyproject.toml
cp ./streamlit/secrets_sample.toml ./streamlit/secrets.toml #add your APIs
uv run streamlit run Z_multichat.py
Clone the repository and Run with your API keys 👇  

Try the Project quickly with Python Venv's:

  1. Get Python Installed
  2. Prepare a Venv
git clone https://github.com/JAlcocerT/Streamlit-MultiChat
#python -m venv multichat_venv #create the venv
python3 -m venv multichat_venv #linux

#multichat_venv\Scripts\activate #activate venv (windows)
source multichat_venv/bin/activate #(linux)

Then, provide the API Keys and run the Streamlit Web App:

#uv pip install -r requirements.txt
pip install -r requirements.txt #all at once, ~2min
#pip freeze > requirements-output.txt

cp ./.streamlit/secrets_sample.toml ./.streamlit/secrets.toml #fill the API Keys
#streamlit run Z_multichat.py
streamlit run Z_multichat_Auth.py
  • Make sure to have Ollama ready and running your desired model!
  • Prepare the API Keys in any of:
    • .streamlit/secrets.toml
    • As Environment Variables
      • Linux - export OPENAI_API_KEY="YOUR_API_KEY"
      • CMD - set OPENAI_API_KEY=YOUR_API_KEY
      • PS - $env:OPENAI_API_KEY="YOUR_API_KEY"
      • In the Docker-Compose
    • Through the Streamlit UI
MultiChat

Chat with Several Models with Streamlit

docker pull ghcr.io/jalcocert/streamlit-multichat:latest #x86/ARM64
make up #downloads and configures the docker-compose

You will need Docker ready. And optionally Portainer


Thanks to ❤️

Projects I got inspiration from / consolidated in this App were tested here: ./Z_Tests

Check the Projects 👈  
0