Closed sjl1989 closed 1 year ago
@sjl1989 谢谢你分反馈。
openAi的接口新增了新类型,https://platform.openai.com/docs/guides/moderation/overview
调用时返回异常: java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "harassment" (class com.unfbx.chatgpt.entity.moderations.Categories), not marked as ignorable (7 known properties: "sexual/minors", "violence/graphic", "self-harm", "hate", "violence", "sexual", "hate/threatening"]) at [Source: okhttp3.ResponseBody$BomAwareReader@27b74cb4; line: 1, column: 162] (through reference chain: com.unfbx.chatgpt.entity.moderations.ModerationResponse["results"]->java.util.ArrayList[0]->com.unfbx.chatgpt.entity.moderations.Result["categories"]->com.unfbx.chatgpt.entity.moderations.Categories["harassment"])
openAi的接口新增了新类型,https://platform.openai.com/docs/guides/moderation/overview
调用时返回异常: java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "harassment" (class com.unfbx.chatgpt.entity.moderations.Categories), not marked as ignorable (7 known properties: "sexual/minors", "violence/graphic", "self-harm", "hate", "violence", "sexual", "hate/threatening"]) at [Source: okhttp3.ResponseBody$BomAwareReader@27b74cb4; line: 1, column: 162] (through reference chain: com.unfbx.chatgpt.entity.moderations.ModerationResponse["results"]->java.util.ArrayList[0]->com.unfbx.chatgpt.entity.moderations.Result["categories"]->com.unfbx.chatgpt.entity.moderations.Categories["harassment"])