瀏覽代碼

ERNIE千帆改用免费的yi-34b-chat模型

xiongweixp 8 月之前
父節點
當前提交
6bf0847c67
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      erniecli.py

+ 1 - 1
erniecli.py

@@ -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/completions?access_token=" + get_access_token()
+    url = "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/yi_34b_chat?access_token=" + get_access_token()
     
     data = {
         "messages": [