Files
embed/wrangler.toml
xiaomo 396e005686 feat: embedding service — Cloudflare Worker + KV cache + Dashscope
- POST /embed: batch text → vector (max 100)
- KV cache: sha256(model+text), content-addressable, no expiry
- Dashscope text-embedding-v3 upstream (1024 dims)
- Bearer token auth
- Health endpoint

Deployed: https://embed.shazhou.workers.dev
2026-04-29 07:21:46 +00:00

8 lines
154 B
TOML

name = "embed"
main = "src/index.ts"
compatibility_date = "2024-12-01"
[[kv_namespaces]]
binding = "EMBED_CACHE"
id = "80f3318667c04ade94fa53ba3e2285fe"