⬆️ v0.1.2

This commit is contained in:
shroominic
2025-09-04 21:50:05 +01:00
committed by GitHub
6 changed files with 20 additions and 8 deletions
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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",
+15 -3
View File
@@ -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 <http://localhost:8000/admin/> 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
- [User Guide](../user-guide/introduction.md) - Detailed usage
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -24,7 +24,7 @@ from .middleware import LoggingMiddleware
setup_logging()
logger = get_logger(__name__)
__version__ = "0.1.1b"
__version__ = "0.1.2"
@asynccontextmanager
Generated
+1 -1
View File
@@ -1783,7 +1783,7 @@ wheels = [
[[package]]
name = "routstr"
version = "0.1.1b0"
version = "0.1.2"
source = { editable = "." }
dependencies = [
{ name = "aiosqlite" },