posthog-js-lite icon indicating copy to clipboard operation
posthog-js-lite copied to clipboard

OpenAI Responses API support missing

Open dugjason opened this issue 1 year ago • 1 comments

Bug description

Seeing a type error when attempting to include posthog* properties in a posthogOpenAI.responses.create({...}) call for OpenAI models.

Not behaving as documented

How to reproduce

  1. Init a Posthog AI client for OpenAI
  2. Attempt to add posthog* attributes
  3. See type error
Image

Relevant client versions;

{
  "dependencies": {
    "@posthog/ai": "3.3.2",
    "openai": "4.90.0",
    "posthog-js": "1.234.1",
    "posthog-node": "4.11.1"
  }
}

Related sub-libraries

  • [ ] All of them
  • [ ] posthog-web
  • [x] posthog-node
  • [ ] posthog-react-native

Additional context

Thank you for your bug report – we love squashing them!

dugjason avatar Mar 31 '25 15:03 dugjason