feat(vision): add vision chat mode

- Add new "vision" chat mode to the application
- Implement the `visionChatMode` function to handle vision-based chat interactions
- Update the UI to include a new button to toggle the vision chat mode
- Add new translations for the "vision" chat mode tooltip
- Disable certain UI elements when the vision chat mode is active
This commit is contained in:
n4ze3m
2024-11-23 14:04:57 +05:30
parent edc5380a76
commit 2c12b17dda
5 changed files with 368 additions and 47 deletions

View File

@@ -32,8 +32,8 @@ type State = {
setIsProcessing: (isProcessing: boolean) => void
selectedModel: string | null
setSelectedModel: (selectedModel: string) => void
chatMode: "normal" | "rag"
setChatMode: (chatMode: "normal" | "rag") => void
chatMode: "normal" | "rag" | "vision"
setChatMode: (chatMode: "normal" | "rag" | "vision") => void
isEmbedding: boolean
setIsEmbedding: (isEmbedding: boolean) => void
speechToTextLanguage: string