releases.shpreview

Claude cached input tokens no longer double-billed via OpenAI wrapper

@posthog/ai@8.3.1

July 16, 2026PostHog JSView original ↗
1 fixThis release1 fixBug fixesAI-tallied from the release notes
From the original release noteView original ↗

8.3.1

Patch Changes

  • #4071 182434f Thanks @DerGeraetK! - fix(ai): declare $ai_cache_reporting_exclusive: false on OpenAI wrapper events so ingestion no longer double-bills cached input tokens for Claude models served through OpenAI-compatible hosts (e.g. OpenRouter). The flag stays unset when callers pass their own input or cache token counts through posthogProperties, so existing passthrough workarounds keep reporting correctly. (2026-07-16)

Fetched July 16, 2026