Skip to content

Commit cdef2a5

Browse files
committed
docs(readme): update CI/CD and embeddings info
1 parent d138845 commit cdef2a5

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ npm run dev
1616
npm run deploy
1717
```
1818

19-
## CI Deploy (GitHub Actions)
19+
## CI/CD (GitHub Actions)
2020

21-
- Tao Cloudflare user "github-bot" va tao API Token tu user nay de Dashboard hien deployer la "github-bot".
22-
- Luu GitHub Actions secrets: CF_API_TOKEN va CF_ACCOUNT_ID.
23-
- Workflow deploy: .github/workflows/deploy.yml.
21+
- Workflow: `.github/workflows/deploy.yml`
22+
- `pull_request -> main`: chạy CI (`npm ci`, `npm test`)
23+
- `push -> main`: chạy CI rồi auto deploy Worker
24+
- `workflow_dispatch`: cho phép manual deploy từ GitHub UI
25+
- Cần set secrets:
26+
- `CF_API_TOKEN`
27+
- `CF_ACCOUNT_ID`
2428

2529
## MCP (Streamable HTTP)
2630

@@ -78,6 +82,7 @@ Call tool:
7882
- `POST /v1/embeddings`
7983
- Alias route cũng hỗ trợ: `/openai/v1/models`, `/openai/v1/embeddings`
8084
- Nếu đặt `OPENAI_API_KEY`, request phải gửi `Authorization: Bearer <key>`.
85+
- `encoding_format` hỗ trợ: `float` (mặc định) và `base64`.
8186

8287
Ví dụ gọi embedding:
8388

0 commit comments

Comments
 (0)