Warning: Missing argument 3 for write(), called in /www/wwwroot/biwei1.cn/incs/robot.php on line 68 and defined in /www/wwwroot/biwei1.cn/incs/data.php on line 487 想要让GPT(包括3.5)稳定的生成 JSON 格式,最好的方式是在请求时加上 response_format={ "type": "json_object" } 参数,然后如原推那样,在 Prompt 里面用TypeScript 把要返回的JSON的类型定义清楚,就可以比较稳定的得到JSON格式。参考文档: