add model

This commit is contained in:
sijinhui
2024-09-07 23:36:48 +08:00
parent d7f84d3afb
commit beeb4ce78e
3 changed files with 25 additions and 1 deletions

View File

@@ -34,6 +34,10 @@ import {
Button,
} from "antd";
import { OpenAIOutlined, GoogleOutlined } from "@ant-design/icons";
// 自定义图标
import Icon from "@ant-design/icons";
import MoonShot from "@/app/icons/Moonshot.svg";
const { Meta } = AntCard;
import { CheckCard } from "@ant-design/pro-components";
import { CheckGroupValueType } from "@ant-design/pro-card/es/components/CheckCard/Group";
@@ -613,6 +617,9 @@ export function ModalSelector<T extends CheckGroupValueType>(props: {
if (value.startsWith("claude")) {
return <ClaudeInstantIcon />;
}
if (value.startsWith("moon")) {
return <Icon component={MoonShot} />;
}
return <></>;
};