mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +08:00
557 B
557 B
Run SDK examples with uv
This guide explains how to create and activate a Python virtual environment on macOS, install necessary dependencies, and run the .py scripts.
Steps to Set Up and Run the Script
Prerequisites
Configure auth
- Rename .env.template to .env and populate the .env file with your client ID and secret
OPENROUTER_API_KEY=""
Run the script with the .env values
cd examples/
uv run --env-file=.env script.py