File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,11 +16,15 @@ npm run dev
1616npm 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
8287Ví dụ gọi embedding:
8388
You can’t perform that action at this time.
0 commit comments