Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: async client #196

Merged
merged 3 commits into from
Feb 23, 2025
Merged

fix: async client #196

merged 3 commits into from
Feb 23, 2025

Conversation

k11kirky
Copy link
Contributor

fix open ai async client

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR fixes async client support for OpenAI in the PostHog Python SDK by adding privacy mode and groups parameter handling.

  • Added posthog_privacy_mode and posthog_groups parameters to posthog/ai/openai/openai_async.py for better control over data privacy
  • Updated version to 3.14.3 in posthog/version.py to reflect the async client fix
  • Added proper parameter handling across wrapper classes (WrappedChat, WrappedCompletions, WrappedBetaCompletions) for consistent event tracking

3 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@k11kirky k11kirky merged commit 57a3e74 into master Feb 23, 2025
6 checks passed
@k11kirky k11kirky deleted the fix/async-client branch February 23, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants