releases.shpreview

$ai_base_url now populated; gateway deduping enabled

@posthog/ai@8.1.0

1 featureThis release1 featureNew capabilitiesAI-tallied from the release notes

8.1.0

Minor Changes

  • #3751 9140a67 Thanks @richardsolomou! - feat: populate $ai_base_url on the Vercel and OpenAI Agents instrumentation paths so gateway-routed $ai_generation events can be deduped on ingestion. The Vercel middleware recovers the base URL from the provider's internal config (config.baseURL, or the config.url({ path }) closure used by @ai-sdk/openai / openai-compatible) instead of hardcoding an empty string. The OpenAI Agents processor emits it from model_config.base_url when the SDK exposes it (best-effort; the SDK omits it for Responses calls and for chat calls with model settings). (2026-06-09)

Fetched June 9, 2026