Browse Source

修改大模型文件

plg 8 months ago
parent
commit
ab1f2625e1
1 changed files with 14 additions and 0 deletions
  1. 14 0
      src/main/index.js

+ 14 - 0
src/main/index.js

@@ -675,7 +675,11 @@ ipcMain.on("window-close", function () {
       }
     }
     wssSwitch = false;
+
+    //关闭java
     cmd.runSync("taskkill /f /im javaw.exe");
+    //关闭大模型 
+    cmd.runSync("taskkill /f /im llamafile-0.6.2.exe");
     app.quit();
   }
   // mainWindow.close();
@@ -1312,10 +1316,20 @@ webGlobal();
 //启动docker
 function startDocker() {
   // execFile("C:/nlp/nlp" + '/start1.bat', function (err, data) {
+  //启动docker 情绪对话模型
   execFile("C:/chat" + "/start.bat", function (err, data) {
     console.log(err);
     console.log(data.toString());
   });
+  //启动docker 对话模型--新版本的大模型
+  execFile("C:/llamafile" + "/start.bat", function (err, data) {
+    console.log(err);
+    console.log(data.toString());
+  });
+  execFile("C:/llamafile/flask" + "/flask_run.bat", function (err, data) {
+    console.log(err);
+    console.log(data.toString());
+  });
 }
 startDocker();