[Python] 纯文本查看 复制代码 import requests
import json
if __name__ == "__main__":
header = {
'accept': 'application/json, text/plain, */*',
'accept-encoding':'gzip, deflate, br',
'accept-language':'zh-CN,zh;q=0.9',
'content-type': 'application/json',
'origin':'https://chat.jinshutuan.com',
"referer" : "https://chat.jinshutuan.com/",
'user-agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36'
}
data = {
"prompt":"写一篇水杯文章",
"userId":'#/chat/1684146126416',
"network":True,
"system":"",
"withoutContext":False,
"stream":False
}
r = requests.post(url="https://api.binjie.fun/api/generateStream", headers = header, data=json.dumps(data, ensure_ascii=False))
刚刚没有测试。 |