mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-27 08:54:12 +01:00
feat: add duplicate message check and update chat UI styles
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user