Skip to content

0xblocktrain/openrouter-streamlit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔀 OpenRouter + Streamlit Example App

Open in GitHub Codespaces

Starter examples for building LLM apps with Streamlit and OpenRouter, using OpenRouter OAuth PCKE.

Overview of the App

This app showcases a growing collection of OpenRouter minimum working examples, using multiple AI APIs.

Current examples include:

  • Chatbot
  • File Q&A
  • Langchain Quickstart
  • Langchain PromptTemplate
  • LangChain Search

Demo App

Streamlit App

Running the code

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
streamlit run Chatbot.py

Getting API keys

Not needed! Your users will click the Connect OpenRouter button and auto-supply your app with a custom API key, using an OAuth PKCE flow.

About

Example of calling OpenRouter from a Streamit app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%