This commit is contained in:
hackrobot
2024-04-28 00:21:36 +08:00
parent 85cc4fbab1
commit d5885e91c7

View File

@@ -463,12 +463,10 @@ def kp(event_data):
else: else:
# chaglm api在本地8000端口 # chaglm api在本地8000端口
# winHookUrl='http://192.168.31.184:8000/img' # winHookUrl='http://192.168.31.184:8000/img'
winHookUrl='http://chatbot.hackrobot.cn/img' winHookUrl = 'http://chatbot.hackrobot.cn/img'
payload = { payload = {'query': {'query': "test"}}
'query': "test",
}
res = requests.post(winHookUrl, data=payload) res = requests.post(winHookUrl, data=payload)
print('res====>',res) print('res====>', res)
# r = res.json() # r = res.json()
# print('r',r) # print('r',r)
return "test" return "test"