For JavaScript examples, see here.
- Install Poetry
- Install dependencies:
poetry install - Run
poetry shellto activate the virtual environment
Run python src/openai_test.py
Run python src/langchain_test.py
Run python src/litellm_test.py
Examples of calling OpenRouter models from Python code
Python