import type { FC } from 'react' import type { Model, ModelProvider, } from '../declarations' import { useLanguage } from '../hooks' import { CubeOutline } from '@/app/components/base/icons/src/vender/line/shapes' import { OpenaiViolet } from '@/app/components/base/icons/src/public/llm' type ModelIconProps = { provider?: Model | ModelProvider modelName?: string className?: string } const ModelIcon: FC = ({ provider, className, modelName, }) => { const language = useLanguage() if (provider?.provider === 'openai' && (modelName?.startsWith('gpt-4') || modelName?.includes('4o'))) return if (provider?.icon_small) { return ( model-icon ) } return (
) } export default ModelIcon