fix: allow adding custom model names that differ only by case

This commit is contained in:
feitianbubu
2026-07-10 10:55:15 +08:00
parent 4e570389dd
commit e8596cab7e
+1 -2
View File
@@ -145,8 +145,7 @@ export function MultiSelect(props: MultiSelectProps) {
(selectedSet.has(trimmedInput) ||
props.options.some(
(option) =>
option.value.toLowerCase() === trimmedInput.toLowerCase() ||
option.label.toLowerCase() === trimmedInput.toLowerCase()
option.value === trimmedInput || option.label === trimmedInput
))
const canCreate =