@copilotkit/react-ui 1.72.1-canary.sp-longthread-perf → 1.73.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.
package/dist/index.cjs CHANGED
@@ -2415,14 +2415,7 @@ function CopilotChat({ instructions, suggestions = "auto", onSubmitMessage, make
2415
2415
  type: "text",
2416
2416
  text
2417
2417
  });
2418
- for (const attachment of currentAttachments) contentParts.push({
2419
- type: attachment.type,
2420
- source: attachment.source,
2421
- metadata: {
2422
- ...attachment.filename ? { filename: attachment.filename } : {},
2423
- ...attachment.metadata
2424
- }
2425
- });
2418
+ for (const attachment of currentAttachments) contentParts.push((0, _copilotkit_shared.createAttachmentContent)(attachment));
2426
2419
  return sendMessage({
2427
2420
  id: (0, _copilotkit_shared.randomUUID)(),
2428
2421
  content: contentParts,