@posthog/ai 4.3.2 → 4.4.0

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.
package/lib/index.mjs CHANGED
@@ -602,7 +602,7 @@ const mapVercelPrompt = prompt => {
602
602
  let serialized = JSON.stringify(inputs);
603
603
  let removedCount = 0;
604
604
  // We need to keep track of the initial size of the inputs array because we're going to be mutating it
605
- let initialSize = inputs.length;
605
+ const initialSize = inputs.length;
606
606
  for (let i = 0; i < initialSize && Buffer.byteLength(serialized, 'utf8') > MAX_OUTPUT_SIZE; i++) {
607
607
  inputs.shift();
608
608
  removedCount++;