import { type FC, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { Button, Space, App // Slider, Input, // Form, // Checkbox } from 'antd'; import copy from 'copy-to-clipboard' import Card from './components/Card'; // import qpsRestrictions from '@/assets/images/application/qpsRestrictions.svg' // import dailyAdjustmentDosage from '@/assets/images/application/dailyAdjustmentDosage.svg' // import tokenCap from '@/assets/images/application/tokenCap.svg' // const limitList = [ // { key: 'qpsRestrictions', value: '10', icon: qpsRestrictions, unit: ' times/second' }, // { key: 'dailyAdjustmentDosage', value: '1000', icon: dailyAdjustmentDosage, unit: ' times/day' }, // { key: 'tokenCap', value: '10', icon: tokenCap, unit: 'M Tokens/day' }, // ] // const sdkList = ['pythonSDK', 'nodejsSDK', 'goSDK', 'curlExample'] const Api: FC<{apiKeyList?: string[]}> = ({apiKeyList = []}) => { const { t } = useTranslation(); const [activeMethods, setActiveMethod] = useState(['GET']); const { message } = App.useApp() // const [form] = Form.useForm(); const copyContent = window.location.origin + '/v1/chat' const handleCopy = (content: string) => { copy(content) message.success(t('common.copySuccess')) } return (