浏览器的开发者工具无法抓到结果所以用了其他抓包工具
根据分析得知,请求的时候传递conversation_id 就可以继续保持,另外id是随机的,parentid是传递上一次的结果,
post参数
{"action":"next","messages":[{"id":"6ba50a9e-1c5b-43a9-85e7-3f4fb10ba1bb","role":"user","content":{"content_type":"text","parts":["继续"]}}],"conversation_id":"be8d325d-85f8-43f7-a5d2-a9b3d5201dad","parent_message_id":"1c008d94-d195-4a49-97b2-f2b3fa70b997","model":"text-davinci-002-render"}
得到得结果
data: {"message": {"id": "6ea285ca-96d0-4e1c-9a1b-431bdc7f61d4", "role": "assistant", "user": null, "create_time": null, "update_time": null, "content": {"content_type": "text", "parts": ["\u597d\u7684\u3002\u5982\u679c\u60a8\u8fd8\u6709\u4efb\u4f55\u95ee\u9898\uff0c\u6211\u5f88\u4e50\u610f\u7ee7\u7eed\u4e3a\u60a8\u63d0\u4f9b\u5e2e\u52a9\u3002\u60a8\u53ef\u4ee5\u95ee\u6211\u5173\u4e8e\u67d0\u4e2a\u8bdd\u9898\u7684\u95ee\u9898\uff0c\u6216\u8005\u60a8\u53ef\u4ee5\u95ee\u6211\u4e00\u4e9b\u5173\u4e8e\u6211\u81ea\u5df1\u7684\u4e8b\u60c5\u3002\u6211\u53ef\u4ee5\u56de\u7b54\u5f88\u591a\u4e0d\u540c\u7c7b\u578b\u7684\u95ee\u9898\uff0c\u5305\u62ec\u5386\u53f2\u3001\u79d1\u5b66\u3001\u6587\u5316\u3001\u653f\u6cbb\u7b49\u7b49\u3002\u6211\u7684\u77e5\u8bc6\u9762\u975e\u5e38\u5e7f\u6cdb\uff0c\u6240\u4ee5\u5982\u679c\u60a8\u6709\u4efb\u4f55\u95ee\u9898\uff0c\u90fd\u53ef\u4ee5\u5411\u6211\u63d0\u95ee\u3002\u6211\u4f1a\u5c3d\u6211\u6240\u80fd\u6765\u5e2e\u52a9\u60a8\u3002"]}, "end_turn": null, "weight": 1.0, "metadata": {}, "recipient": "all"}, "conversation_id": "be8d325d-85f8-43f7-a5d2-a9b3d5201dad", "error": null}
再次提问 发起的请求参数
{"action":"next","messages":[{"id":"47f670d1-d0eb-4c93-8713-1be69cedfbaa","role":"user","content":{"content_type":"text","parts":["请继续"]}}],"conversation_id":"be8d325d-85f8-43f7-a5d2-a9b3d5201dad",
"parent_message_id":"6ea285ca-96d0-4e1c-9a1b-431bdc7f61d4","model":"text-davinci-002-render"}
网友评论