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:
@@ -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 }),
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user