```
5. 返回格式必须严格按照以下 JSON 格式,不要添加任何其他内容:
{"id": number, "name": "string", "score": number}
注意:
- id 必须是数字类型,不能带引号
- name 必须是字符串类型,必须带引号
- score 必须是 0-1 之间的小数,表示分类的可能性
- 不要返回 markdown 格式或其他任何格式
EOT],
['role' => 'user', 'content' => "请为商品\"{$product_name}\"选择最合适的分类"]
],
'temperature' => 0.1
]);
```
我这样给的,之前稳定。
现在不行,估计加`{type:'json_object'}`就行了。
(temperature => 0.1 curosr 帮我改的... 压根没这个) |