You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OpenAI wrapper should warn on fallback wrapper #614
We had code that was using openai.chat.completions.parse (notice, not .beta). This was silently hitting the fallback __getattr__ in the OpenAI wrappers (e.g.,
and similar patterns throughout that file). That meant that we were at best not logging those endpoints, and at worst crashing when we were trying to pass posthog_distinct_id etc. to it.
I'm not sure what the right behavior is, but the silent fallback bit us and led to crashes.
(Should I open a second bug for openai.chat.completions.parse not being wrapped?)
Activity
marandaneto commentedon May 21, 2026
@PostHog/team-ai-observability
marandaneto commentedon May 22, 2026
#618