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