Browse Source

【增加】mj敏感词返回信息,有时间处理

cherishsince 1 year ago
parent
commit
a5023cda1d

+ 94 - 0
yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/mj敏感词返回信息.json

@@ -0,0 +1,94 @@
+{
+  "op": 0,
+  "s": 5,
+  "t": "MESSAGE_CREATE",
+  "d": {
+    "mention_everyone": false,
+    "pinned": false,
+    "components": [
+      {
+        "components": [
+          {
+            "custom_id": "MJ::Prompts::LLMComplaintSubmit::8d706b5c-36d9-4ef5-af2e-b778c876e39b",
+            "style": 2,
+            "label": "Notify developers",
+            "type": 2
+          }
+        ],
+        "type": 1
+      }
+    ],
+    "attachments": [],
+    "interaction_metadata": {
+      "user_id": "975372485971312700",
+      "name": "imagine",
+      "authorizing_integration_owners": {
+        "0": "1234355413420347402"
+      },
+      "id": "1234381275448479744",
+      "type": 2,
+      "user": {
+        "global_name": "禁止挂软件刷图,逮到删服务器,踢设备,永久拉黑!!!",
+        "avatar_decoration_data": null,
+        "clan": null,
+        "public_flags": 0,
+        "id": "975372485971312700",
+        "avatar": "90ab939feddeaea32e23d066ce66d0e6",
+        "username": "andrakosq9211",
+        "discriminator": "0"
+      }
+    },
+    "author": {
+      "global_name": null,
+      "bot": true,
+      "avatar_decoration_data": null,
+      "clan": null,
+      "public_flags": 589824,
+      "id": "936929561302675456",
+      "avatar": "f6ce562a6b4979c4b1cbc5b436d3be76",
+      "username": "Midjourney Bot",
+      "discriminator": "9282"
+    },
+    "flags": 64,
+    "type": 20,
+    "mention_roles": [],
+    "nonce": "1784822542798630912",
+    "application_id": "936929561302675456",
+    "edited_timestamp": null,
+    "content": "",
+    "tts": false,
+    "webhook_id": "936929561302675456",
+    "mentions": [],
+    "interaction": {
+      "name": "imagine",
+      "id": "1234381275448479744",
+      "type": 2,
+      "user": {
+        "global_name": "禁止挂软件刷图,逮到删服务器,踢设备,永久拉黑!!!",
+        "avatar_decoration_data": null,
+        "clan": null,
+        "public_flags": 0,
+        "id": "975372485971312700",
+        "avatar": "90ab939feddeaea32e23d066ce66d0e6",
+        "username": "andrakosq9211",
+        "discriminator": "0"
+      }
+    },
+    "position": 0,
+    "id": "1234381284084809749",
+    "embeds": [
+      {
+        "content_scan_version": 0,
+        "color": 16711680,
+        "footer": {
+          "text": "/imagine 性感车模,站在车上! --v 6"
+        },
+        "description": "Sorry! Our AI moderator thinks this prompt is probably against our community standards.\n\nPlease review our current community standards:\n\n**ALLOWED**\n- Any image up to PG-13 rating involving fiction, fantasy, mythology.\n- Real images that may be seen as respectful or light-hearted parodies, satire, caricatures\n- Imaginary or exaggerated real-life scenarios, including absurd or humorous situations.\n\n**NOT ALLOWED**\n- Disrespectful, harmful, misleading public figures/events portrayals or potential to mislead.\n- Hate speech, explicit or real-world violence.\n- Nudity or unconsented overtly sexualized public figures.\n- Imagery that might be considered culturally insensitive\n\nThis AI system isn't perfect. If you find it rejecting something innocent please press the **Notify Developers** button and we will review it and try to further improve our performance. Thank you for your help!",
+        "type": "rich",
+        "title": "Banned prompt detected"
+      }
+    ],
+    "channel_id": "1234380679576424448",
+    "timestamp": "2024-04-29T05:50:31.821000+00:00"
+  }
+}