Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

706 B
Raw Blame
import { Icon } from '@lobehub/ui';
import { AlertTriangle } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';

import BaseErrorForm from '@/features/Conversation/Error/BaseErrorForm';

interface DeprecatedModelErrorProps {
  requestedModel?: string;
}

const DeprecatedModelError = memo<DeprecatedModelErrorProps>(({ requestedModel }) => {
  const { t } = useTranslation('error');

  return (
    <BaseErrorForm
      avatar={<Icon icon={AlertTriangle} size={24} />}
      title={t('fetchError.title')}
      desc={t('response.LobeHubModelDeprecated', {
        model: requestedModel ?? '-',
      })}
    />
  );
});

export default DeprecatedModelError;