mirror of
https://github.com/hanzoai/insights-js.git
synced 2026-10-30 18:34:19 +00:00
* feat(examples): add Dedalus Labs and Cloudflare AI Gateway examples * docs: include POSTHOG_API_KEY in Cloudflare example README * fix(examples): use cf-aig-authorization header for Cloudflare AI Gateway auth The gateway requires the upstream provider key as the main API key and the CF AI Gateway token via the cf-aig-authorization header. * fix(examples): update Cloudflare .env.example to use CF_AIG env vars
313 B
313 B
Dedalus Labs + PostHog AI Examples
Track Dedalus Labs API calls with PostHog via the OpenAI-compatible API.
Setup
pnpm install
cp .env.example .env
# Fill in your API keys in .env
Examples
- chat.ts - Chat completions via Dedalus Labs
Run
source .env
npx tsx chat.ts