fix: 修复build错误(attachments类型与switchBranch接口)
parent
8badd8f6db
commit
18debfb0fe
|
|
@ -58,6 +58,8 @@ export const ChatAPI = {
|
|||
imageUrls
|
||||
})
|
||||
.then((r) => r.data),
|
||||
switchBranch: (agentId: string, userMsgId: string, branchId: string) =>
|
||||
api.post(`/agents/${agentId}/messages/${userMsgId}/branches/${branchId}/switch`).then((r) => r.data),
|
||||
clear: (roomId: string) =>
|
||||
api.delete(`/rooms/${roomId}/messages`).then((r) => r.data)
|
||||
};
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ export default function ChatInput(props: {
|
|||
setInput: (v: string) => void;
|
||||
sending: boolean;
|
||||
attachments: ChatAttachment[];
|
||||
setAttachments: (updater: (prev: ChatAttachment[]) => ChatAttachment[]) => ChatAttachment[];
|
||||
setAttachments: (updater: (prev: ChatAttachment[]) => ChatAttachment[]) => void;
|
||||
imageUrls: string[];
|
||||
setImageUrls: (updater: (prev: string[]) => string[]) => void;
|
||||
onSend: () => void;
|
||||
|
|
|
|||
Loading…
Reference in New Issue