feat: migrate LLM provider to Cloudflare Workers AI

Replace OpenRouter SDK with direct Cloudflare Workers AI
REST API calls. Same model (glm-4.7-flash), validated with
arktype. Env vars: CF_ACCOUNT_ID, WORKERS_AI_API_KEY.

Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
2026-04-12 11:12:53 +00:00
parent 0a8243c55b
commit 6689f18331
7 changed files with 105 additions and 65 deletions

View File

@@ -16,7 +16,7 @@
"devDependencies": {
"@json-render/core": "^0.12.1",
"@nym.sh/jrx": "^0.2.0",
"@types/bun": "latest",
"@types/bun": "^1.3.12",
"oxfmt": "^0.24.0",
"oxlint": "^1.39.0"
},