-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
57 lines (47 loc) · 1.32 KB
/
Taskfile.yml
File metadata and controls
57 lines (47 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: '3'
vars:
PROJECT_NAME: serverless-proxy
PORT: 8002
tasks:
default:
desc: List available tasks
cmds:
- task --list
docker:up:
desc: Start the proxy in Docker
cmds:
- docker compose up -d --build
docker:stop:
desc: Stop the proxy
cmds:
- docker compose down
docker:restart:
desc: Restart the proxy
cmds:
- docker compose restart
docker:logs:
desc: View proxy logs
cmds:
- docker logs -f {{.PROJECT_NAME}}
docker:status:
desc: Check if proxy is running
cmds:
- docker ps | grep {{.PROJECT_NAME}}
test:models:
desc: Test /v1/models endpoint
cmds:
- curl -s http://localhost:{{.PORT}}/v1/models | jq .
test:chat:
desc: Test chat completions (non-streaming)
cmds:
- |
curl -s -X POST http://localhost:{{.PORT}}/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model": "project-system-ai", "messages": [{"role": "user", "content": "Hello!"}]}' | jq .
test:stream:
desc: Test chat completions (streaming)
cmds:
- |
curl -s -X POST http://localhost:{{.PORT}}/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model": "project-system-ai", "messages": [{"role": "user", "content": "Hi"}], "stream": true}'