releases.shpreview

Prompts.get() now fetches prompt versions by label (e.g. "production")

@posthog/ai@8.4.0

July 17, 2026PostHog JSView original ↗
1 featureThis release1 featureNew capabilitiesAI-tallied from the release notes
From the original release noteView original ↗

8.4.0

Minor Changes

  • #4163 45f5488 Thanks @jurajmajerik! - feat(ai): add a label option to Prompts.get() to fetch the prompt version a label (e.g. production) currently points to. Labeled fetches are cached separately, results carry the resolved label, and a warning is logged when the server does not resolve the requested label (older PostHog versions ignore the parameter and return the latest version). (2026-07-17)

Fetched July 17, 2026

Prompts.get() now fetches prompt versions by label (e.g.… — releases.sh