import { Button, Dropdown, Typography, Tag } from "antd";
import {
DownOutlined,
ReloadOutlined,
GlobalOutlined,
} from "@ant-design/icons";
import type { MenuProps } from "antd";
const { Text } = Typography;
const ModelSelector = () => {
const modelItems: MenuProps["items"] = [
{
key: "auto",
label: (
),
},
{
key: "gpt-4o",
label: (
),
},
{
key: "o4-mini",
label: (
),
},
{
key: "gpt-4.1-mini",
label: (
),
},
{
type: "divider",
},
{
key: "refresh",
label: (
),
},
{
key: "search",
label: (
搜索网页
),
},
];
const handleMenuClick: MenuProps["onClick"] = ({ key }) => {
if (key === "refresh") {
console.log("重试操作");
return;
}
if (key === "search") {
console.log("搜索网页");
return;
}
};
return (
);
};
export default ModelSelector;