Browse Source

modify:coze的api接口由V2改为V3

zhusc 4 months ago
parent
commit
f5f1efd0f2
1 changed files with 0 additions and 8 deletions
  1. 0 8
      coze_bot_api.py

+ 0 - 8
coze_bot_api.py

@@ -68,14 +68,6 @@ def call_llm(prompt: str, bot_id: str,coze_access_token:str):
         "Authorization":f"Bearer {coze_access_token}",
         "Content-Type": "application/json",
     }
-    # req_data = {
-    #     "conversation_id": "123",
-    #     "bot_id": bot_id,
-    #     "user": "test",
-    #     "query": prompt,
-    #     "stream": False
-    # }
-
     req_data ={
         "bot_id": bot_id,
         "user_id": "123456789",