docs(llma): add Dedalus Labs and Cloudflare AI Gateway onboarding docs#54663
Merged
richardsolomou merged 8 commits intomasterfrom Apr 16, 2026
Merged
Conversation
Contributor
Prompt To Fix All With AIThis is a comment left during a code review.
Path: docs/onboarding/llm-analytics/cloudflare-ai-gateway.tsx
Line: 129
Comment:
**Inconsistent Anthropic model identifier vs Dedalus docs**
The Cloudflare file uses `anthropic/claude-sonnet-4-5` as the example Anthropic model, while `dedalus.tsx` line 127 uses `anthropic/claude-sonnet-4-20250514` for the same concept. If these are different naming conventions required by each gateway, a brief note clarifying that would help readers; if they should match, it's worth aligning on one identifier to avoid confusion.
How can I resolve this? If you propose a fix, please make it concise.
---
This is a comment left during a code review.
Path: frontend/src/scenes/onboarding/sdks/allSDKs.tsx
Line: 245-253
Comment:
**`<Logomark />` missing sizing wrapper**
The two existing entries that use `Logomark` as a placeholder both wrap it in a sizing `<span>` — API uses `<span className="flex h-8 w-8">` and Manual Capture uses `<span className="flex w-8 pb-3">`. The new Cloudflare and Dedalus entries render it unwrapped, which may produce an oversized or misaligned icon in the picker. Even as a temporary placeholder, matching the existing sizing pattern would keep the picker consistent until the real brand assets are swapped in.
How can I resolve this? If you propose a fix, please make it concise.Reviews (1): Last reviewed commit: "docs(llma): use real Cloudinary logos fo..." | Re-trigger Greptile |
Merged
5 tasks
Contributor
|
Size Change: 0 B Total Size: 130 MB ℹ️ View Unchanged
|
Contributor
|
🎭 Playwright report · View test results →
These issues are not necessarily caused by your changes. |
Member
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
a1022b0 to
f364187
Compare
cbd9a96 to
6e3fe73
Compare
f364187 to
7dced8f
Compare
andrewm4894
approved these changes
Apr 15, 2026
7dced8f to
7e7cd78
Compare
The gateway requires the upstream provider key as the main API key and the CF AI Gateway token via the cf-aig-authorization header.
7e7cd78 to
84aac35
Compare
Contributor
Visual regression: Storybook UI snapshots updatedChanges: 2 snapshots (2 modified, 0 added, 0 deleted) What this means:
Next steps:
|
Contributor
|
Docs from this PR will be published at posthog.com
Preview will be ready in ~10 minutes. Click Preview link above to access docs at |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problem
We're adding Dedalus Labs and Cloudflare AI Gateway as supported LLM analytics providers. Users need onboarding docs and SDK picker entries to set these up.
Changes
docs/onboarding/llm-analytics/dedalus.tsx— 3-step install flow (deps, OTel setup, call Dedalus). Models useprovider/model-idformat (e.g.openai/gpt-5-mini).docs/onboarding/llm-analytics/cloudflare-ai-gateway.tsx— 3-step install flow. Usescompatendpoint with upstream provider key as main auth andcf-aig-authorizationheader for gateway token.frontend/src/types.ts— AddedCLOUDFLARE_AI_GATEWAYandDEDALUStoSDKKeyenum.frontend/src/scenes/onboarding/sdks/allSDKs.tsx— Added both providers to the SDK picker with Cloudinary logos andGATEWAYtag.frontend/src/scenes/onboarding/sdks/llm-analytics/LLMAnalyticsSDKInstructions.tsx— Wired up installation components.Stacked on #53668.
Fixes #49837.
How did you test this code?
Ran the Cloudflare AI Gateway example end-to-end via posthog-js and confirmed
$ai_generationevents land in PostHog. TypeScript compiles cleanly for the new files.👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Publish to changelog?
No
Docs update
Companion posthog.com PR: PostHog/posthog.com#16367
🤖 LLM context
Co-authored with Claude Code. The
cf-aig-authorizationheader pattern was validated against Cloudflare's actual API — the gateway requires the upstream provider key as the mainAuthorizationheader and the CF AI Gateway token via a separatecf-aig-authorizationheader.