+
{status === "pending" &&
}
{status === "success" && (
- <>
+
-
- {
- setOllamaURL(e.target.value)
- }}
- placeholder="Your Ollama URL"
- className="w-full p-2 border border-gray-300 rounded-md dark:bg-[#262626] dark:text-gray-100"
- />
-
-
- {
- saveOllamaURL(ollamaURL)
- }}
- className="mt-2"
- />
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
- >
+
+
+ {
+ setOllamaURL(e.target.value)
+ }}
+ placeholder="Your Ollama URL"
+ className="w-full p-2 border border-gray-300 rounded-md dark:bg-[#262626] dark:text-gray-100"
+ />
+
+
+ {
+ saveOllamaURL(ollamaURL)
+ }}
+ className="mt-2"
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Configure RAG Prompt
+
+
+
+
+
+
)}
)
diff --git a/src/components/Option/Settings/other.tsx b/src/components/Option/Settings/other.tsx
index be10071..e1acd26 100644
--- a/src/components/Option/Settings/other.tsx
+++ b/src/components/Option/Settings/other.tsx
@@ -15,9 +15,15 @@ export const SettingOther = () => {
const { mode, toggleDarkMode } = useDarkMode()
return (
-
+
+
+
+ Web UI Settings
+
+
+
-
+
Speech Recognition Language
@@ -37,7 +43,7 @@ export const SettingOther = () => {
/>
-
+
Change Theme
@@ -53,7 +59,7 @@ export const SettingOther = () => {
-
+
Delete Chat History
@@ -76,6 +82,6 @@ export const SettingOther = () => {
Delete
-
+
)
}
diff --git a/src/components/Option/Settings/prompt.tsx b/src/components/Option/Settings/prompt.tsx
index 09117bd..5b79dd6 100644
--- a/src/components/Option/Settings/prompt.tsx
+++ b/src/components/Option/Settings/prompt.tsx
@@ -1,5 +1,5 @@
import { useQuery, useQueryClient } from "@tanstack/react-query"
-import { Skeleton, Radio, Form } from "antd"
+import { Skeleton, Radio, Form, Alert } from "antd"
import React from "react"
import { SaveButton } from "~components/Common/SaveButton"
import {
@@ -12,7 +12,7 @@ import {
export const SettingPrompt = () => {
const [selectedValue, setSelectedValue] = React.useState<"normal" | "web">(
- "normal"
+ "web"
)
const queryClient = useQueryClient()
@@ -41,7 +41,6 @@ export const SettingPrompt = () => {
{status === "success" && (
-
Prompt
{
initialValues={{
prompt: data.prompt
}}>
+
+
+