teodor-new-chat-ui 4.3.684 → 4.3.685

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/dist/index.esm.js CHANGED
@@ -3628,7 +3628,11 @@ function ix(e) {
3628
3628
  return e.content.filter(tx);
3629
3629
  }
3630
3630
  function mu(e) {
3631
- return e.content.filter(nx);
3631
+ const t = e.content.filter(nx), n = Array.isArray(e.toolCalls) ? e.toolCalls : [];
3632
+ if (!n.length) return t;
3633
+ if (!t.length) return n;
3634
+ const r = new Set(n.map((o) => o.id));
3635
+ return [...n, ...t.filter((o) => !r.has(o.id))];
3632
3636
  }
3633
3637
  function ax(e) {
3634
3638
  return e.content.filter(rx);