Skip to content

OpenRouterTeam/openrouter-examples-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenRouter Examples - Python

For JavaScript examples, see here.

Setup

  1. Install Poetry
  2. Install dependencies: poetry install
  3. Run poetry shell to activate the virtual environment

OpenAI

Run python src/openai_test.py

LangChain

Run python src/langchain_test.py

LiteLLM

Run python src/litellm_test.py

About

Examples of calling OpenRouter models from Python code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy