philschmid HF staff commited on
Commit
012b862
1 Parent(s): 67dfb22
Files changed (1) hide show
  1. src/App.tsx +1 -7
src/App.tsx CHANGED
@@ -169,13 +169,7 @@ const App: React.FC = () => {
169
  options={
170
  data
171
  .flatMap((provider) => provider.models)
172
- .map((model) => ({ label: model.name, value: model.name }))
173
- .reduce((acc, curr) => {
174
- if (acc.findIndex((m) => m.label === curr.label) === -1) {
175
- acc.push(curr)
176
- }
177
- return acc
178
- }, []) || []
179
  }
180
  defaultValue={selectedModels}
181
  onValueChange={setSelectedModels}
 
169
  options={
170
  data
171
  .flatMap((provider) => provider.models)
172
+ .map((model) => ({ label: model.name, value: model.name })) || []
 
 
 
 
 
 
173
  }
174
  defaultValue={selectedModels}
175
  onValueChange={setSelectedModels}