Commit e8596cab by feitianbubu

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

parent 4e570389
......@@ -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 =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment