feat: Add OCR support to message formatting

This commit is contained in:
n4ze3m
2024-12-28 16:27:49 +05:30
parent eed1a5a0d1
commit 18bc597dc7
16 changed files with 431 additions and 34 deletions

View File

@@ -131,7 +131,9 @@ export const SidepanelForm = ({ dropedFile }: Props) => {
setWebSearch,
selectedQuickPrompt,
setSelectedQuickPrompt,
speechToTextLanguage
speechToTextLanguage,
useOCR,
setUseOCR
} = useMessage()
React.useEffect(() => {
@@ -414,6 +416,16 @@ export const SidepanelForm = ({ dropedFile }: Props) => {
{t("common:chatWithCurrentPage")}
</Checkbox>
)
},
{
key: 3,
label: (
<Checkbox
checked={useOCR}
onChange={(e) => setUseOCR(e.target.checked)}>
{t("useOCR")}
</Checkbox>
)
}
]
}}>