import { IconExternalLink } from '@tabler/icons-react'; import { useContext } from 'react'; import { useTranslation } from 'next-i18next'; import { OpenAIModel } from '@/types/openai'; import HomeContext from '@/pages/api/home/home.context'; export const ModelSelect = () => { const { t } = useTranslation('chat'); const { state: { selectedConversation, models, defaultModelId }, handleUpdateConversation, dispatch: homeDispatch, } = useContext(HomeContext); const handleChange = (e: React.ChangeEvent) => { selectedConversation && handleUpdateConversation(selectedConversation, { key: 'model', value: models.find( (model) => model.id === e.target.value, ) as OpenAIModel, }); }; return (
{t('View Account Usage')}
); };