Fix schema for ModelChains (#23284)

This commit is contained in:
kevinjwang1
2026-03-20 12:50:15 -07:00
committed by GitHub
parent 05e4ea80ee
commit 86a3a913b5
4 changed files with 44 additions and 3 deletions

View File

@@ -233,7 +233,8 @@ export function ModelDialog({ onClose }: ModelDialogProps): React.JSX.Element {
});
// Deduplicate: only show one entry per unique resolved model value.
// This is needed because 3 pro and 3.1 pro models can resolve to the same value.
// This is needed because 3 pro and 3.1 pro models can resolve to the same
// value, depending on the useGemini31 flag.
const seen = new Set<string>();
return list.filter((option) => {
if (seen.has(option.value)) return false;