|
|
|
|
@ -13,14 +13,12 @@ type ModelIconProps = {
|
|
|
|
|
modelName?: string
|
|
|
|
|
className?: string
|
|
|
|
|
isDeprecated?: boolean
|
|
|
|
|
isInModelList?: boolean
|
|
|
|
|
}
|
|
|
|
|
const ModelIcon: FC<ModelIconProps> = ({
|
|
|
|
|
provider,
|
|
|
|
|
className,
|
|
|
|
|
modelName,
|
|
|
|
|
isDeprecated = false,
|
|
|
|
|
isInModelList = true,
|
|
|
|
|
}) => {
|
|
|
|
|
const language = useLanguage()
|
|
|
|
|
if (provider?.provider.includes('openai') && modelName?.includes('gpt-4o'))
|
|
|
|
|
@ -28,7 +26,7 @@ const ModelIcon: FC<ModelIconProps> = ({
|
|
|
|
|
if (provider?.provider.includes('openai') && modelName?.startsWith('gpt-4'))
|
|
|
|
|
return <div className='flex items-center justify-center'><OpenaiViolet className={cn('w-5 h-5', className)}/></div>
|
|
|
|
|
|
|
|
|
|
if (provider?.icon_small && isInModelList) {
|
|
|
|
|
if (provider?.icon_small) {
|
|
|
|
|
return (
|
|
|
|
|
<div className={`flex items-center justify-center w-5 h-5 ${isDeprecated ? 'opacity-50' : ''}`}>
|
|
|
|
|
<img
|
|
|
|
|
|