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: (
Auto
), }, { key: "gpt-4o", label: (
GPT-4o翻译
适用于大多数任务
), }, { key: "o4-mini", label: (
o4-mini
快速进行高级推理
), }, { key: "gpt-4.1-mini", label: (
GPT-4.1-mini
适合处理日常任务
), }, { type: "divider", }, { key: "refresh", label: (
重试
GPT-4o
), }, { key: "search", label: (
搜索网页
), }, ]; const handleMenuClick: MenuProps["onClick"] = ({ key }) => { if (key === "refresh") { console.log("重试操作"); return; } if (key === "search") { console.log("搜索网页"); return; } }; return (
); }; export default ModelSelector;