| 602 | const modelIds = await response.json(); | 602 | const modelIds = await response.json(); |
| 603 | if (Array.isArray(modelIds) && modelIds.length > 0) { | 603 | if (Array.isArray(modelIds) && modelIds.length > 0) { |
| 604 | modelIds.sort().forEach((modelId) => { | 604 | modelIds.sort().forEach((modelId) => { |
| 605 | if (!modelId || typeof modelId !== 'string' || options.some(o => o.value === modelId)) { | 605 | if (!modelId || typeof modelId !== 'string' || options.some(o => o.value === modelId && o.dataset.type === api)) { |
| 606 | return; | 606 | return; |
| 607 | } | 607 | } |
| 608 | const option = document.createElement('option'); | 608 | const option = document.createElement('option'); |