Add deleteChatHistory method to PageAssitDatabase class and systemPromptForNonRagOption functions to ollama service
This commit is contained in:
39
src/components/Option/Settings.tsx
Normal file
39
src/components/Option/Settings.tsx
Normal file
@@ -0,0 +1,39 @@
|
||||
import { Tabs } from "antd"
|
||||
import { SettingsOllama } from "./Settings/ollama"
|
||||
import { SettingPrompt } from "./Settings/prompt"
|
||||
import { SettingOther } from "./Settings/other"
|
||||
|
||||
type Props = {
|
||||
setClose: (close: boolean) => void
|
||||
}
|
||||
|
||||
export const Settings = ({ setClose }: Props) => {
|
||||
return (
|
||||
<div className="my-6">
|
||||
<Tabs
|
||||
tabPosition="left"
|
||||
defaultActiveKey="1"
|
||||
items={[
|
||||
{
|
||||
id: "1",
|
||||
key: "1",
|
||||
label: "Prompt",
|
||||
children: <SettingPrompt />
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
key: "2",
|
||||
label: "Ollama",
|
||||
children: <SettingsOllama />
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
key: "3",
|
||||
label: "Other",
|
||||
children: <SettingOther />
|
||||
}
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user