Pārlūkot izejas kodu

改用文心一言新开放免费的ERNIE-Speed-128k模型

xiongweixp 8 mēneši atpakaļ
vecāks
revīzija
31d6356805
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 1 1
      .vscode/launch.json
  2. 2 2
      erniecli.py

+ 1 - 1
.vscode/launch.json

@@ -9,7 +9,7 @@
             "type": "debugpy",
             "request": "launch",
             "program": "erniecli.py",
-            "args": ["command","建立一个图标abc.desktop,运行/opt/abc/abc.sh"],
+            "args": ["command","看看现在用哪些docker容器在运行"],
             "console": "integratedTerminal"
         },
         {

+ 2 - 2
erniecli.py

@@ -23,7 +23,7 @@ USE_LOCAL = False
 LOCAL_PORT = 11434
 
 PROMPT = """
-你是一个Linux命令行专家,请将我的请求转换成一条可执行的bash命令。
+你是一个Linux终端,请将我的请求转换成一条最简洁的bash命令。
 只给一条命令,不要做任何解释或说明。
 
 示例:
@@ -151,7 +151,7 @@ def get_config():
 # 查询百度千帆
 def askERNIE(question):
     global chats
-    url = "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/yi_34b_chat?access_token=" + get_access_token()
+    url = "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/ernie-speed-128k?access_token=" + get_access_token()
     
     data = {
         "messages": [