We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce0f8cb commit 4095f20Copy full SHA for 4095f20
1 file changed
packages/elements/src/prompt-input.tsx
@@ -430,7 +430,7 @@ export const PromptInputActionAddAttachments = ({
430
431
export type PromptInputMessage = {
432
text: string;
433
- files: FileUIPart[];
+ files: (FileUIPart & { file?: File })[];
434
};
435
436
export type PromptInputProps = Omit<
@@ -731,7 +731,7 @@ export const PromptInput = ({
731
return item;
732
})
733
)
734
- .then((convertedFiles: FileUIPart[]) => {
+ .then((convertedFiles: (FileUIPart & { file?: File })[]) => {
735
try {
736
const result = onSubmit({ text, files: convertedFiles }, event);
737
0 commit comments