Releases: PostHog/posthog-python
Releases · PostHog/posthog-python
7.18.0
Immutable
release. Only release title and notes can be modified.
Minor changes
- a2ce51e feat(feature-flags): support the
early_exitcondition option in local evaluation. When a flag enables early exit, evaluation now stops and returnsFalseas soon as a condition group's property filters match but the rollout percentage excludes the user, instead of falling through to later groups — matching the server-side evaluation behavior. — Thanks @gustavohstrassburger!
7.17.0
Immutable
release. Only release title and notes can be modified.
Minor changes
- 3aed638 Add a configurable
$is_serverevent property (defaulttrue) so PostHog can identify server-side events. Setis_server=Falsewhen using posthog-python as a client/CLI so the device OS is attributed normally. — Thanks @turnipdabeets for your first contribution 🎉!
7.16.4
Immutable
release. Only release title and notes can be modified.
Patch changes
- 44e6b14 Fix async streaming responses from the AI wrappers (OpenAI, Anthropic, Gemini) so they support
async withas well asasync for. Previously, consuming a stream viaasync with(e.g. with pydantic-ai) raisedTypeError: 'async_generator' object does not support the asynchronous context manager protocol. — Thanks @turnipdabeets for your first contribution 🎉!
7.16.3
Immutable
release. Only release title and notes can be modified.
Patch changes
- 643a810 Return empty flag defaults from Client flag helpers when the flags API fails. — Thanks @marandaneto!
7.16.2
Immutable
release. Only release title and notes can be modified.
Patch changes
- 034dce2 Make module-level setup no-op when API key is blank — Thanks @marandaneto!
7.16.1
Immutable
release. Only release title and notes can be modified.
Patch changes
- 8f6d6c8 Include group context in the
$feature_flag_calleddedupe key so group-scoped flags fire a separate event for each group a user is evaluated under, instead of being dedup-ed against the first group context the same(distinct_id, flag, response)was seen under. — Thanks @gustavohstrassburger!
7.16.0
Immutable
release. Only release title and notes can be modified.
Minor changes
- a44e0be Add async flag definition cache providers — Thanks @dustinbyrne!
7.15.4
Immutable
release. Only release title and notes can be modified.
Patch changes
- 0207088 Track OpenAI chat completions parse calls — Thanks @marandaneto!
7.15.3
Immutable
release. Only release title and notes can be modified.
Patch changes
- be9b78b Reject semver values with leading zeros in local flag evaluation. Per semver 2.0.0 §2, numeric identifiers must not include leading zeros — values like
1.07.3are not valid semver and should not match targeting conditions. Both override values and flag values are now validated; invalid inputs raiseInconclusiveMatchErrorso the condition does not match. — Thanks @dmarticus!
7.15.2
Immutable
release. Only release title and notes can be modified.
Patch changes
- 1574b1b Fix OpenAI usage parsing when token detail fields are null — Thanks @michael-ciridae!