|
@@ -82,10 +82,8 @@ def call_llm(prompt: str, bot_id: str,coze_access_token:str):
|
|
|
]
|
|
|
}
|
|
|
res_create = requests.post(" https://api.coze.cn/v1/conversation/create", headers=req_head)
|
|
|
- # print(res_create.json()["data"]["id"])
|
|
|
coversition_id = res_create.json()["data"]["id"]
|
|
|
res_chat = requests.post(f" https://api.coze.cn/v3/chat?conversation_id={coversition_id}", headers=req_head,json=req_data)
|
|
|
- # print(res_chat.json()["data"]["id"])
|
|
|
chat_id = res_chat.json()["data"]["id"]
|
|
|
while True:
|
|
|
res_retrieve = requests.get(f" https://api.coze.cn/v3/chat/retrieve?chat_id={chat_id}&conversation_id={coversition_id}", headers=req_head)
|