chore: Update SidepanelForm to include chat mode checkbox for normal and rag modes
This commit is contained in:
parent
8899a42331
commit
2a7d34f4df
@ -95,7 +95,8 @@ export const SidepanelForm = ({ dropedFile }: Props) => {
|
||||
chatMode,
|
||||
speechToTextLanguage,
|
||||
stopStreamingRequest,
|
||||
streaming
|
||||
streaming,
|
||||
setChatMode
|
||||
} = useMessage()
|
||||
const { isListening, start, stop, transcript } = useSpeechRecognition()
|
||||
|
||||
@ -264,6 +265,18 @@ export const SidepanelForm = ({ dropedFile }: Props) => {
|
||||
{t("sendWhenEnter")}
|
||||
</Checkbox>
|
||||
)
|
||||
},
|
||||
{
|
||||
key: 2,
|
||||
label: (
|
||||
<Checkbox
|
||||
checked={chatMode === "rag"}
|
||||
onChange={(e) => {
|
||||
setChatMode(e.target.checked ? "rag" : "normal")
|
||||
}}>
|
||||
{t("common:chatWithCurrentPage")}
|
||||
</Checkbox>
|
||||
)
|
||||
}
|
||||
]
|
||||
}}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user