Browse Source

Merge pull request #3233 from nanaya-tachibana/nanaya/model-selection

Yifei Zhang 1 year ago
parent
commit
fdca9e59de
1 changed files with 7 additions and 5 deletions
  1. 7 5
      app/components/model-config.tsx

+ 7 - 5
app/components/model-config.tsx

@@ -25,11 +25,13 @@ export function ModelConfigList(props: {
             );
           }}
         >
-          {allModels.map((v, i) => (
-            <option value={v.name} key={i} disabled={!v.available}>
-              {v.name}
-            </option>
-          ))}
+          {allModels
+            .filter((v) => v.available)
+            .map((v, i) => (
+              <option value={v.name} key={i}>
+                {v.displayName}
+              </option>
+            ))}
         </Select>
       </ListItem>
       <ListItem