Procházet zdrojové kódy

Merge pull request #5442 from DDDDD12138/fix-typo

chore: correct typo
Dogtiti před 1 rokem
rodič
revize
027e5adf67
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      app/components/chat.tsx

+ 2 - 2
app/components/chat.tsx

@@ -520,8 +520,8 @@ export function ChatActions(props: {
 
     // if current model is not available
     // switch to first available model
-    const isUnavaliableModel = !models.some((m) => m.name === currentModel);
-    if (isUnavaliableModel && models.length > 0) {
+    const isUnavailableModel = !models.some((m) => m.name === currentModel);
+    if (isUnavailableModel && models.length > 0) {
       // show next model to default model if exist
       let nextModel = models.find((model) => model.isDefault) || models[0];
       chatStore.updateCurrentSession((session) => {