You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+47-25Lines changed: 47 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,10 +105,10 @@ cp .env.sample .env
105
105
2. Edit `.env` with your settings:
106
106
107
107
```bash
108
-
#Server Configuration
109
-
SERVER_HOST="0.0.0.0"
110
-
SERVER_PORT=3000
111
-
SERVER_ENDPOINT="/api"
108
+
#Local client proxy configuration
109
+
SERVER_HOST="127.0.0.1"
110
+
SERVER_PORT=8090
111
+
SERVER_ENDPOINT="/api/v1"
112
112
113
113
# Blockchain Network Configuration
114
114
BLOCKCHAIN_RPC=https://your-blockchain-node.com
@@ -351,7 +351,7 @@ parity-client llm list --limit 10
351
351
Submit compute tasks to the network:
352
352
353
353
```bash
354
-
curl -X POST http://localhost:3000/api/tasks \
354
+
curl -X POST http://localhost:8090/api/v1/tasks \
355
355
-H "Content-Type: application/json" \
356
356
-d '{
357
357
"image": "alpine:latest",
@@ -361,18 +361,39 @@ curl -X POST http://localhost:3000/api/tasks \
361
361
}'
362
362
```
363
363
364
+
If the image only exists on your local machine and needs to be uploaded first, use the dedicated local upload route instead:
365
+
366
+
```bash
367
+
curl -X POST http://localhost:8090/api/v1/tasks/local \
368
+
-H "Content-Type: application/json" \
369
+
-d '{
370
+
"image": "my-local-image:latest",
371
+
"command": ["echo", "Hello from a local image"],
372
+
"title": "Local Task",
373
+
"description": "This image is uploaded by the client"
374
+
}'
375
+
```
376
+
364
377
### Health Monitoring
365
378
366
379
The parity client provides comprehensive health monitoring endpoints for operational visibility:
367
380
381
+
#### Local Proxy Guide
382
+
383
+
```bash
384
+
curl http://localhost:8090/
385
+
```
386
+
387
+
The root endpoint returns the local proxy routes, example task submissions, and the upstream server target so you can confirm whether you should use `/api/v1/tasks` or `/api/v1/tasks/local`.
0 commit comments