| @@ -23,9 +23,9 @@ const ModelIcon: FC<ModelIconProps> = ({ | |||
| isDeprecated = false, | |||
| }) => { | |||
| const language = useLanguage() | |||
| if (provider?.provider.includes('openai') && modelName?.includes('gpt-4o')) | |||
| if (provider?.provider && ['openai', 'langgenius/openai/openai'].includes(provider.provider) && modelName?.includes('gpt-4o')) | |||
| return <div className='flex items-center justify-center'><OpenaiBlue className={cn('h-5 w-5', className)} /></div> | |||
| if (provider?.provider.includes('openai') && modelName?.startsWith('gpt-4')) | |||
| if (provider?.provider && ['openai', 'langgenius/openai/openai'].includes(provider.provider) && modelName?.startsWith('gpt-4')) | |||
| return <div className='flex items-center justify-center'><OpenaiViolet className={cn('h-5 w-5', className)} /></div> | |||
| if (provider?.icon_small) { | |||