Bläddra i källkod

修正本地模式的回答

xiongweixp 8 månader sedan
förälder
incheckning
630af536e8
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      .vscode/launch.json
  2. 1 1
      erniecli.py

+ 1 - 1
.vscode/launch.json

@@ -9,7 +9,7 @@
             "type": "debugpy",
             "request": "launch",
             "program": "erniecli.py",
-            "args": ["command","你是谁y"],
+            "args": ["command","显示当前用户"],
             "console": "integratedTerminal"
         },
         {

+ 1 - 1
erniecli.py

@@ -330,7 +330,7 @@ def issueModel(question):
                 lock[1] ="\033[1;32m终端助理正在本地思考...\033[0m"
                 answer = askLocal(question)
                 chats.append([question, answer])
-                cli = parse(answer, True)
+                result, cli = parse(answer, True)
     if cli== "":
         lock[1] ="\033[1;32m终端助理正在云端思考...\033[0m"