feat: Introduce temporary chat mode

Adds a new "Temporary Chat" mode for quick, non-persistent conversations. The new mode is available in the header bar and will trigger a visually distinct chat experience with a temporary background color. Temporary chats do not save to the chat history and are meant for short, one-off interactions. This feature enhances flexibility and provides a more convenient option for users who need to quickly interact with the AI without committing the conversation to their history.
This commit is contained in:
n4ze3m
2024-11-09 19:10:34 +05:30
parent 8fbdfc35d3
commit f8791a0707
21 changed files with 167 additions and 52 deletions

View File

@@ -65,6 +65,9 @@ type State = {
setSpeechToTextLanguage: (language: string) => void
speechToTextLanguage: string
temporaryChat: boolean
setTemporaryChat: (temporaryChat: boolean) => void
}
export const useStoreMessageOption = create<State>((set) => ({
@@ -102,5 +105,8 @@ export const useStoreMessageOption = create<State>((set) => ({
setSelectedQuickPrompt: (selectedQuickPrompt) => set({ selectedQuickPrompt }),
selectedKnowledge: null,
setSelectedKnowledge: (selectedKnowledge) => set({ selectedKnowledge })
setSelectedKnowledge: (selectedKnowledge) => set({ selectedKnowledge }),
temporaryChat: false,
setTemporaryChat: (temporaryChat) => set({ temporaryChat }),
}))