Update web-app/src/routes/settings/providers/index.tsx

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This commit is contained in:
Faisal Amir 2025-07-07 11:19:00 +07:00 committed by GitHub
parent 1422d94fac
commit 977a8a5774
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,7 +38,7 @@ function ModelProviders() {
const [name, setName] = useState('')
const createProvider = useCallback(() => {
if (providers.some((e) => e.provider === name)) {
if (providers.some((e) => e.provider.toLowerCase() === name.toLowerCase())) {
toast.error(t('providerAlreadyExists', { name }))
return
}