feat: add chatgpt-4o-latest (#7289)

This commit is contained in:
非法操作
2024-08-15 11:19:10 +08:00
committed by GitHub
parent 32dc963556
commit 5aa373dc04
4 changed files with 52 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ const ModelIcon: FC<ModelIconProps> = ({
}) => {
const language = useLanguage()
if (provider?.provider === 'openai' && modelName?.startsWith('gpt-4'))
if (provider?.provider === 'openai' && (modelName?.startsWith('gpt-4') || modelName?.includes('4o')))
return <OpenaiViolet className={`w-4 h-4 ${className}`}/>
if (provider?.icon_small) {