diff --git a/docs/api/overview.md b/docs/api/overview.md index 17453d41..a09ccc21 100644 --- a/docs/api/overview.md +++ b/docs/api/overview.md @@ -347,7 +347,7 @@ GET /health Response: { "status": "healthy", - "version": "0.1.1b", + "version": "0.1.2", "timestamp": "2024-01-01T00:00:00Z", "checks": { "database": "ok", diff --git a/docs/contributing/code-structure.md b/docs/contributing/code-structure.md index 714410ff..e1ff26ee 100644 --- a/docs/contributing/code-structure.md +++ b/docs/contributing/code-structure.md @@ -348,7 +348,7 @@ Project metadata and dependencies: ```toml [project] name = "routstr" -version = "0.1.1b" +version = "0.1.2" dependencies = [ "fastapi[standard]>=0.115", "sqlmodel>=0.0.24", diff --git a/docs/getting-started/quickstart.md b/docs/getting-started/quickstart.md index 66fa3172..0ef96c02 100644 --- a/docs/getting-started/quickstart.md +++ b/docs/getting-started/quickstart.md @@ -28,23 +28,27 @@ docker run -d \ For a full setup with Tor support: 1. Clone the repository: + ```bash git clone https://github.com/routstr/routstr-core.git cd routstr-core ``` 2. Create environment file: + ```bash cp .env.example .env # Edit .env with your settings ``` 3. Start the services: + ```bash docker compose up -d ``` This will start: + - Routstr proxy on port 8000 - Tor hidden service (optional) - Automatic database migrations @@ -58,11 +62,12 @@ curl http://localhost:8000/v1/info ``` You should see: + ```json { "name": "ARoutstrNode", "description": "A Routstr Node", - "version": "0.1.1b", + "version": "0.1.2", "npub": "", "mints": ["https://mint.minibits.cash/Bitcoin"], "models": {...} @@ -74,11 +79,13 @@ You should see: ### Install Dependencies 1. Install [uv](https://github.com/astral-sh/uv) package manager: + ```bash curl -LsSf https://astral.sh/uv/install.sh | sh ``` 2. Clone and setup: + ```bash git clone https://github.com/routstr/routstr-core.git cd routstr-core @@ -86,6 +93,7 @@ uv sync ``` 3. Configure environment: + ```bash cp .env.example .env # Edit .env with your settings @@ -120,6 +128,7 @@ curl -X POST http://localhost:8000/v1/wallet/create \ ``` Response: + ```json { "api_key": "rUvK7...", @@ -156,6 +165,7 @@ CASHU_TOKEN="your-token" python example.py ``` This demonstrates: + - Creating an API key from a token - Making streaming chat requests - Automatic balance deduction @@ -170,18 +180,20 @@ curl http://localhost:8000/v1/models ### View Admin Dashboard -Open http://localhost:8000/admin/ in your browser. +Open in your browser. Default password is set in `ADMIN_PASSWORD` environment variable. ### Monitor Logs Docker: + ```bash docker compose logs -f routstr ``` Local: + ```bash # Logs are in ./logs/ directory tail -f logs/routstr.log @@ -211,4 +223,4 @@ tail -f logs/routstr.log - [Configuration Guide](configuration.md) - Customize settings - [Docker Setup](docker.md) - Production deployment -- [User Guide](../user-guide/introduction.md) - Detailed usage \ No newline at end of file +- [User Guide](../user-guide/introduction.md) - Detailed usage diff --git a/pyproject.toml b/pyproject.toml index b65c1c95..a7078f19 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "routstr" -version = "0.1.1b" +version = "0.1.2" description = "Payment proxy for your LLM endpoint using cashu and nostr." readme = "README.md" requires-python = ">=3.11" diff --git a/routstr/core/main.py b/routstr/core/main.py index 76f396e2..d522ad7f 100644 --- a/routstr/core/main.py +++ b/routstr/core/main.py @@ -24,7 +24,7 @@ from .middleware import LoggingMiddleware setup_logging() logger = get_logger(__name__) -__version__ = "0.1.1b" +__version__ = "0.1.2" @asynccontextmanager diff --git a/uv.lock b/uv.lock index 0bd3ee67..a8747e59 100644 --- a/uv.lock +++ b/uv.lock @@ -1783,7 +1783,7 @@ wheels = [ [[package]] name = "routstr" -version = "0.1.1b0" +version = "0.1.2" source = { editable = "." } dependencies = [ { name = "aiosqlite" },