diff --git a/src/components/Layouts/SettingsOptionLayout.tsx b/src/components/Layouts/SettingsOptionLayout.tsx index fa074cf..e014c80 100644 --- a/src/components/Layouts/SettingsOptionLayout.tsx +++ b/src/components/Layouts/SettingsOptionLayout.tsx @@ -10,7 +10,6 @@ import { useTranslation } from "react-i18next" import { Link, useLocation } from "react-router-dom" import { OllamaIcon } from "../Icons/Ollama" import { Tag } from "antd" -import { BetaTag } from "../Common/Beta" function classNames(...classes: string[]) { return classes.filter(Boolean).join(" ") @@ -82,7 +81,6 @@ export const SettingsLayout = ({ children }: { children: React.ReactNode }) => { name={
{t("manageKnowledge.title")} -
} icon={BlocksIcon} diff --git a/src/components/Option/Models/index.tsx b/src/components/Option/Models/index.tsx index 22bedbf..d91da80 100644 --- a/src/components/Option/Models/index.tsx +++ b/src/components/Option/Models/index.tsx @@ -91,125 +91,123 @@ export const ModelsBody = () => { {status === "pending" && } {status === "success" && ( -
+
( - - {`${text?.slice(0, 5)}...${text?.slice(-4)}`} - - ) - }, - { - title: t("manageModels.columns.modifiedAt"), - dataIndex: "modified_at", - key: "modified_at", - render: (text: string) => dayjs(text).fromNow(true) - }, - { - title: t("manageModels.columns.size"), - dataIndex: "size", - key: "size", - render: (text: number) => bytePerSecondFormatter(text) - }, - { - title: t("manageModels.columns.actions"), - render: (_, record) => ( -
- - - - - - -
- ) - } - ]} - expandable={{ - expandedRowRender: (record) => ( -
- ), - defaultExpandAllRows: false - }} - bordered - dataSource={data} - rowKey={(record) => `${record.model}-${record.digest}`} - /> + }} + className="text-red-500 dark:text-red-400"> + + + + + + + + ) + } + ]} + expandable={{ + expandedRowRender: (record) => ( +
+ ), + defaultExpandAllRows: false + }} + bordered + dataSource={data} + rowKey={(record) => `${record.model}-${record.digest}`} + /> )} @@ -223,6 +221,7 @@ export const ModelsBody = () => { onSubmit={form.onSubmit((values) => pullOllamaModel(values.model))}> diff --git a/src/components/Option/Settings/other.tsx b/src/components/Option/Settings/other.tsx index e05a9b8..ad5dc0f 100644 --- a/src/components/Option/Settings/other.tsx +++ b/src/components/Option/Settings/other.tsx @@ -86,10 +86,12 @@ export const SettingOther = () => { />
- - {t("generalSettings.settings.copilotResumeLastChat.label")} - - +
+ + + {t("generalSettings.settings.copilotResumeLastChat.label")} + +
setCopilotResumeLastChat(checked)}