refactor(chat): change file.type to file.data_type in ChatMessage component and ChatMessageType type definition
This commit is contained in:
parent
0945dbe582
commit
4292b95175
2 changed files with 5 additions and 5 deletions
|
|
@ -58,7 +58,7 @@ export default function ChatMessage({ chat }: { chat: ChatMessageType }) {
|
||||||
<div key={index} className="my-2 w-full">
|
<div key={index} className="my-2 w-full">
|
||||||
<FileCard
|
<FileCard
|
||||||
fileName={"Generated File"}
|
fileName={"Generated File"}
|
||||||
fileType={file.type}
|
fileType={file.data_type}
|
||||||
content={file.data}
|
content={file.data}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ import { FlowType } from "../flow";
|
||||||
|
|
||||||
export type ChatType = { flow: FlowType; reactFlowInstance: ReactFlowInstance };
|
export type ChatType = { flow: FlowType; reactFlowInstance: ReactFlowInstance };
|
||||||
export type ChatMessageType = {
|
export type ChatMessageType = {
|
||||||
message: string;
|
message: string;
|
||||||
isSend: boolean;
|
isSend: boolean;
|
||||||
thought?: string;
|
thought?: string;
|
||||||
files?: Array<{data:string,type:string}>;
|
files?: Array<{ data: string; type: string; data_type: string }>;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue