mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-01 12:40:23 +08:00
first commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# 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
|
||||
|
||||
- [Install uv](https://docs.astral.sh/uv/getting-started/installation/#pypi)
|
||||
|
||||
|
||||
### Configure auth
|
||||
|
||||
- Rename .env.template to .env and populate the .env file with your client ID and secret
|
||||
|
||||
```bash
|
||||
OPENROUTER_API_KEY=""
|
||||
```
|
||||
|
||||
### Run the script with the .env values
|
||||
|
||||
```bash
|
||||
cd examples/
|
||||
uv run --env-file=.env script.py
|
||||
```
|
||||
Reference in New Issue
Block a user