@posthog/ai 8.21.0 → 8.21.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.
@@ -467,7 +467,7 @@ function addDefaults(params) {
467
467
  }
468
468
  //#endregion
469
469
  //#region package.json
470
- var version = "8.21.0";
470
+ var version = "8.21.1";
471
471
  //#endregion
472
472
  //#region src/serializeError.ts
473
473
  const DEFAULT_MAX_DEPTH = 3;
@@ -1212,7 +1212,7 @@ var WrappedMessages = class extends AnthropicOriginal.Messages {
1212
1212
  currentReasoningBlock = null;
1213
1213
  const tool = toolsInProgress.get(chunk.index);
1214
1214
  if (tool) {
1215
- try {
1215
+ if (tool.inputString) try {
1216
1216
  tool.block.function.arguments = JSON.parse(tool.inputString);
1217
1217
  } catch (e) {
1218
1218
  console.error("Error parsing tool input:", e);