posthog-v7.36.0
Immutable
release. Only release title and notes can be modified.
Minor changes
- f805e5b
posthog.ai.openai.OpenAI/AsyncOpenAInow accept a per-callposthog_provider_overrideargument. The wrapper is commonly pointed at OpenAI-compatible endpoints (DeepSeek, Groq, Mistral, Together, Fireworks, xAI, Perplexity, Ollama, Cerebras, and various gateways) via a custombase_url, but always reported$ai_provider: "openai", which breaks PostHog's cost attribution for those calls. Passingposthog_provider_override="deepseek"(for example) sets$ai_provideron the emitted event without changing how the OpenAI-shaped response is parsed. Omitting it leaves$ai_provideras"openai", exactly as before. Covers chat completions, the Responses API,.parse(), and embeddings, across sync, async, and streaming calls. — Thanks @marco-g-pm!