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

feat: azure export w/ async #200

Merged
merged 8 commits into from
Feb 28, 2025
Merged

feat: azure export w/ async #200

merged 8 commits into from
Feb 28, 2025

Conversation

k11kirky
Copy link
Contributor

Add Azure Support for Posthog wrapped Open Ai Python SDK

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

Added Azure OpenAI support to the PostHog Python SDK with two new wrapper classes that automatically track LLM usage in PostHog.

  • Added AzureOpenAI and AsyncAzureOpenAI classes in /posthog/ai/openai/openai_providers.py that follow the same pattern as existing OpenAI wrappers
  • Fixed an incorrect import error message that references Anthropic instead of OpenAI
  • Modified llm_observability_examples.py to use basic_openai_call instead of beta_openai_call by default
  • Changed the default execution mode from async to sync in the examples file

2 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

k11kirky and others added 3 commits February 27, 2025 23:48
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@k11kirky k11kirky merged commit 7dc4cbb into master Feb 28, 2025
6 checks passed
@k11kirky k11kirky deleted the feat/azure-openai branch February 28, 2025 20:40
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