feat: add duplicate message check and update chat UI styles

This commit is contained in:
2025-09-02 18:30:34 +02:00
parent 01bbb6c00a
commit 204ded71e5
5 changed files with 11 additions and 3 deletions

View File

@@ -136,9 +136,10 @@ export function useChat(t: any) {
]
})
const { addMessage } = useChatStore()
const { addMessage, checkForDuplicateMessages } = useChatStore()
async function submitMessage(type: ChatType, prompt: string, fetchStates: ChatFetchState[]) {
checkForDuplicateMessages(type)
addMessage(
type,
prompt,