@posthog/ai 8.4.0 → 8.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -530,7 +530,7 @@ function formatOpenAIResponsesInput(input, instructions) {
530
530
  return messages;
531
531
  }
532
532
 
533
- var version = "8.4.0";
533
+ var version = "8.4.1";
534
534
 
535
535
  const DEFAULT_MAX_DEPTH = 3;
536
536
  const MAX_STACK_LINES = 20;
@@ -1390,6 +1390,9 @@ function preserveAPIPromiseHelpers(parentPromise, wrappedPromise) {
1390
1390
  if (typeof parentPromise.withResponse === 'function') {
1391
1391
  apiPromise.withResponse = async () => {
1392
1392
  const [response, data] = await Promise.all([parentPromise.withResponse(), wrappedPromise]);
1393
+ // swaps the `data` payload inside the SDK's generic withResponse shape; the compiler
1394
+ // cannot relate the Input- and Output-instantiated conditional types
1395
+ // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
1393
1396
  return {
1394
1397
  ...response,
1395
1398
  data