一、问题解决:
需要修改json 的 编码方式
import requests
import json
data = {"input":"jxyg20240909002","genType":"学术快报","uuid":"b433727d-0759-4fc1-a8a9-f4ad5e877d5d","break":0,"mainHyPlatform":"EKRPT"}
res = requests.get("http://192.168.4.211:8011/gpt", data = json.dumps(data,ensure_ascii=False).encode("utf8"),stream = True) #忽略ssh证书
for w in res.iter_content(decode_unicode="utf8",chunk_size=1024):
w = w[5:].strip()
print(w)