@copilotkit/react-ui 1.72.1-canary.sp-longthread-perf → 1.73.2-canary.1790068297
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 +1 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -9
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
- package/src/components/chat/Chat.tsx +2 -8
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,
|