From 27d6ba1e7f9a74fcf67dd4be1203d9179f35cb04 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Mon, 29 Apr 2024 21:07:56 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E3=80=91=E6=89=8B?= =?UTF-8?q?=E6=9C=BAmj=E5=BC=82=E5=B8=B8=E4=BF=A1=E6=81=AF=EF=BC=8C?= =?UTF-8?q?=E5=88=B0=E5=90=8E=E6=9C=9F=E7=BB=9F=E4=B8=80=E5=A4=84=E7=90=86?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MessageUpdate-1.json | 86 +++++++ .../imageGenerationProcess/nonce错误信息.json | 239 ++++++++++++++++++ .../imageGenerationProcess/图片放大2倍.json | 72 ++++++ .../并发队列满提示.json | 82 ++++++ .../imageGenerationProcess/队列满.json | 94 +++++++ 5 files changed, 573 insertions(+) create mode 100644 yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/MessageUpdate-1.json create mode 100644 yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/nonce错误信息.json create mode 100644 yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/图片放大2倍.json create mode 100644 yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/并发队列满提示.json create mode 100644 yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/队列满.json diff --git a/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/MessageUpdate-1.json b/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/MessageUpdate-1.json new file mode 100644 index 0000000000..5c21ebfaf1 --- /dev/null +++ b/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/MessageUpdate-1.json @@ -0,0 +1,86 @@ +{ + "op": 0, + "s": 47, + "t": "MESSAGE_UPDATE", + "d": { + "mention_everyone": false, + "pinned": false, + "components": [], + "attachments": [ + { + "filename": "97b1c75b-41c2-4dfe-bb7d-e61fbea8f1c7_grid_0.webp", + "size": 71390, + "content_type": "image/webp", + "width": 512, + "ephemeral": true, + "placeholder_version": 1, + "proxy_url": "https://media.discordapp.net/ephemeral-attachments/1234380679576424448/1234437493542359114/97b1c75b-41c2-4dfe-bb7d-e61fbea8f1c7_grid_0.webp?ex=6630bb01&is=662f6981&hm=60e610be44d3ae5fec8f1cbfb791997a627901d132a24e4364ac663362ab9a30&", + "placeholder": "XQgKBYJ8H3aDh3eHiAeIecB0Bsl2", + "id": "1234437493542359114", + "url": "https://cdn.discordapp.com/ephemeral-attachments/1234380679576424448/1234437493542359114/97b1c75b-41c2-4dfe-bb7d-e61fbea8f1c7_grid_0.webp?ex=6630bb01&is=662f6981&hm=60e610be44d3ae5fec8f1cbfb791997a627901d132a24e4364ac663362ab9a30&", + "height": 340 + } + ], + "interaction_metadata": { + "user_id": "975372485971312700", + "interacted_message_id": "1234433732761620500", + "authorizing_integration_owners": { + "0": "1234355413420347402" + }, + "id": "1234436261440126977", + "type": 3, + "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": 19, + "mention_roles": [], + "application_id": "936929561302675456", + "edited_timestamp": "2024-04-29T09:33:53.172018+00:00", + "content": "**A girl from China, creator of ancient Chinese clothing, dances on the square --ar 3:2** - Pan Right by <@975372485971312700> (35%) (relaxed)", + "tts": false, + "webhook_id": "936929561302675456", + "mentions": [ + { + "global_name": "禁止挂软件刷图,逮到删服务器,踢设备,永久拉黑!!!", + "avatar_decoration_data": null, + "clan": null, + "public_flags": 0, + "id": "975372485971312700", + "avatar": "90ab939feddeaea32e23d066ce66d0e6", + "username": "andrakosq9211", + "discriminator": "0" + } + ], + "position": 0, + "message_reference": { + "guild_id": "1234355413420347402", + "message_id": "1234433732761620500", + "type": 0, + "channel_id": "1234380679576424448" + }, + "id": "1234436266045608016", + "embeds": [], + "channel_id": "1234380679576424448", + "timestamp": "2024-04-29T09:29:00.542000+00:00" + } +} \ No newline at end of file diff --git a/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/nonce错误信息.json b/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/nonce错误信息.json new file mode 100644 index 0000000000..5c3ae931f7 --- /dev/null +++ b/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/nonce错误信息.json @@ -0,0 +1,239 @@ +{ + "op": 0, + "s": 24, + "t": "MESSAGE_UPDATE", + "d": { + "mention_everyone": false, + "pinned": false, + "components": [ + { + "components": [ + { + "emoji": { + "name": "upscale_1", + "id": "940147353879478324" + }, + "custom_id": "MJ::JOB::upsample_v6_2x_subtle::1::519cd956-d02e-4ae2-b62d-17c499dbbe3f::SOLO", + "style": 2, + "label": "Upscale (Subtle)", + "type": 2 + }, + { + "emoji": { + "name": "upscale_1", + "id": "940147353879478324" + }, + "custom_id": "MJ::JOB::upsample_v6_2x_creative::1::519cd956-d02e-4ae2-b62d-17c499dbbe3f::SOLO", + "style": 2, + "label": "Upscale (Creative)", + "type": 2 + }, + { + "emoji": { + "name": "🪄" + }, + "custom_id": "MJ::JOB::low_variation::1::519cd956-d02e-4ae2-b62d-17c499dbbe3f::SOLO", + "style": 2, + "label": "Vary (Subtle)", + "type": 2 + }, + { + "emoji": { + "name": "🪄" + }, + "custom_id": "MJ::JOB::high_variation::1::519cd956-d02e-4ae2-b62d-17c499dbbe3f::SOLO", + "style": 2, + "label": "Vary (Strong)", + "type": 2 + }, + { + "emoji": { + "name": "🖌️" + }, + "custom_id": "MJ::Inpaint::1::519cd956-d02e-4ae2-b62d-17c499dbbe3f::SOLO", + "style": 2, + "label": "Vary (Region)", + "type": 2 + } + ], + "type": 1 + }, + { + "components": [ + { + "emoji": { + "name": "🔍" + }, + "custom_id": "MJ::Outpaint::50::1::519cd956-d02e-4ae2-b62d-17c499dbbe3f::SOLO", + "style": 4, + "label": "Zoom Out 2x", + "type": 2 + }, + { + "emoji": { + "name": "🔍" + }, + "custom_id": "MJ::Outpaint::75::1::519cd956-d02e-4ae2-b62d-17c499dbbe3f::SOLO", + "style": 2, + "label": "Zoom Out 1.5x", + "type": 2 + }, + { + "emoji": { + "name": "🔍" + }, + "custom_id": "MJ::CustomZoom::519cd956-d02e-4ae2-b62d-17c499dbbe3f", + "style": 2, + "label": "Custom Zoom", + "type": 2 + } + ], + "type": 1 + }, + { + "components": [ + { + "emoji": { + "name": "⬅️" + }, + "custom_id": "MJ::JOB::pan_left::1::519cd956-d02e-4ae2-b62d-17c499dbbe3f::SOLO", + "style": 2, + "type": 2 + }, + { + "emoji": { + "name": "➡️" + }, + "custom_id": "MJ::JOB::pan_right::1::519cd956-d02e-4ae2-b62d-17c499dbbe3f::SOLO", + "style": 2, + "type": 2 + }, + { + "emoji": { + "name": "⬆️" + }, + "custom_id": "MJ::JOB::pan_up::1::519cd956-d02e-4ae2-b62d-17c499dbbe3f::SOLO", + "style": 2, + "type": 2 + }, + { + "emoji": { + "name": "⬇️" + }, + "custom_id": "MJ::JOB::pan_down::1::519cd956-d02e-4ae2-b62d-17c499dbbe3f::SOLO", + "style": 2, + "type": 2 + } + ], + "type": 1 + }, + { + "components": [ + { + "emoji": { + "name": "❤️" + }, + "custom_id": "MJ::BOOKMARK::519cd956-d02e-4ae2-b62d-17c499dbbe3f", + "style": 2, + "type": 2 + }, + { + "style": 5, + "label": "Web", + "type": 2, + "url": "https://www.midjourney.com/app/jobs/519cd956-d02e-4ae2-b62d-17c499dbbe3f/" + } + ], + "type": 1 + } + ], + "attachments": [ + { + "filename": "andrakosq9211_A_girl_from_China_creator_of_ancient_Chinese_clot_519cd956-d02e-4ae2-b62d-17c499dbbe3f.png", + "size": 2014189, + "content_type": "image/png", + "width": 1024, + "placeholder_version": 1, + "proxy_url": "https://media.discordapp.net/attachments/1234380679576424448/1234433732341927976/andrakosq9211_A_girl_from_China_creator_of_ancient_Chinese_clot_519cd956-d02e-4ae2-b62d-17c499dbbe3f.png?ex=6630b780&is=662f6600&hm=8f273f74c29274431ec9b02bc4778a37ee944aa5360d10875cbbe512847b71c2&", + "placeholder": "YwgKDwKIWGiAiYd4iGh4d4h4mKz5uZwP", + "id": "1234433732341927976", + "url": "https://cdn.discordapp.com/attachments/1234380679576424448/1234433732341927976/andrakosq9211_A_girl_from_China_creator_of_ancient_Chinese_clot_519cd956-d02e-4ae2-b62d-17c499dbbe3f.png?ex=6630b780&is=662f6600&hm=8f273f74c29274431ec9b02bc4778a37ee944aa5360d10875cbbe512847b71c2&", + "height": 1024 + } + ], + "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": 0, + "type": 19, + "mention_roles": [], + "edited_timestamp": "2024-04-29T09:19:12.812177+00:00", + "content": "**A girl from China, creator of ancient Chinese clothing, dances on the square** - Image #3 <@975372485971312700>", + "tts": false, + "mentions": [ + { + "global_name": "禁止挂软件刷图,逮到删服务器,踢设备,永久拉黑!!!", + "avatar_decoration_data": null, + "member": { + "premium_since": null, + "nick": null, + "joined_at": "2024-04-29T04:07:43.807000+00:00", + "communication_disabled_until": null, + "roles": [], + "pending": false, + "flags": 0, + "deaf": false, + "mute": false, + "avatar": null + }, + "clan": null, + "public_flags": 0, + "id": "975372485971312700", + "avatar": "90ab939feddeaea32e23d066ce66d0e6", + "username": "andrakosq9211", + "discriminator": "0" + } + ], + "member": { + "premium_since": null, + "nick": null, + "joined_at": "2024-04-29T04:09:06.489349+00:00", + "communication_disabled_until": null, + "roles": [ + "1234355760184561747" + ], + "pending": false, + "flags": 0, + "deaf": false, + "mute": false, + "avatar": null + }, + "guild_id": "1234355413420347402", + "position": 0, + "message_reference": { + "guild_id": "1234355413420347402", + "message_id": "1234433346940043294", + "type": 0, + "channel_id": "1234380679576424448" + }, + "id": "1234433732761620500", + "embeds": [ + { + "color": 16711680, + "description": "Hey <@975372485971312700>\nYour job queue is full. Please wait for a job to finish first, then resubmit this one.\n*[Please check the bottom of the channel for more information.](https://discord.com/channels/1234355413420347402/1234380679576424448/1234433798599606315)*", + "type": "rich", + "url": "https://discord.com/channels/1234355413420347402/1234380679576424448/1234433798599606315" + } + ], + "channel_id": "1234380679576424448", + "timestamp": "2024-04-29T09:18:56.560000+00:00" + } +} \ No newline at end of file diff --git a/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/图片放大2倍.json b/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/图片放大2倍.json new file mode 100644 index 0000000000..d8d9cb1945 --- /dev/null +++ b/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/图片放大2倍.json @@ -0,0 +1,72 @@ +{ + "op": 0, + "s": 119, + "t": "MESSAGE_UPDATE", + "d": { + "mention_everyone": false, + "pinned": false, + "components": [], + "attachments": [], + "interaction_metadata": { + "user_id": "975372485971312700", + "interacted_message_id": "1234430088515293194", + "authorizing_integration_owners": { + "0": "1234355413420347402" + }, + "id": "1234430127618658305", + "type": 3, + "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": 19, + "mention_roles": [], + "application_id": "936929561302675456", + "edited_timestamp": "2024-04-29T09:06:37.616666+00:00", + "content": "**A girl from China, creator of ancient Chinese clothing, dances on the square** - Zoom Out by <@975372485971312700> (22%) (relaxed)", + "tts": false, + "webhook_id": "936929561302675456", + "mentions": [ + { + "global_name": "禁止挂软件刷图,逮到删服务器,踢设备,永久拉黑!!!", + "avatar_decoration_data": null, + "clan": null, + "public_flags": 0, + "id": "975372485971312700", + "avatar": "90ab939feddeaea32e23d066ce66d0e6", + "username": "andrakosq9211", + "discriminator": "0" + } + ], + "position": 0, + "message_reference": { + "guild_id": "1234355413420347402", + "message_id": "1234430088515293194", + "type": 0, + "channel_id": "1234380679576424448" + }, + "id": "1234430128721887272", + "embeds": [], + "channel_id": "1234380679576424448", + "timestamp": "2024-04-29T09:04:37.290000+00:00" + } +} \ No newline at end of file diff --git a/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/并发队列满提示.json b/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/并发队列满提示.json new file mode 100644 index 0000000000..c9f25ab2c3 --- /dev/null +++ b/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/并发队列满提示.json @@ -0,0 +1,82 @@ +{ + "op": 0, + "s": 5, + "t": "MESSAGE_CREATE", + "d": { + "mention_everyone": false, + "pinned": false, + "components": [], + "attachments": [], + "interaction_metadata": { + "user_id": "975372485971312700", + "name": "imagine", + "authorizing_integration_owners": { + "0": "1234355413420347402" + }, + "id": "1234425115912179745", + "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": "1234425114066419712", + "application_id": "936929561302675456", + "edited_timestamp": null, + "content": "", + "tts": false, + "webhook_id": "936929561302675456", + "mentions": [], + "interaction": { + "name": "imagine", + "id": "1234425115912179745", + "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": "1234425117380182102", + "embeds": [ + { + "content_scan_version": 0, + "color": 16239475, + "footer": { + "text": "/imagine Cartoon car" + }, + "description": "You have reached the maximum allowed number of concurrent jobs. Don't worry, this job will start as soon as another one finishes!", + "type": "rich", + "title": "Job queued" + } + ], + "channel_id": "1234380679576424448", + "timestamp": "2024-04-29T08:44:42.493000+00:00" + } +} \ No newline at end of file diff --git a/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/队列满.json b/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/队列满.json new file mode 100644 index 0000000000..7f7c75dc2e --- /dev/null +++ b/yudao-module-ai/yudao-spring-boot-starter-ai/src/main/resources/requestTestJson/imageGenerationProcess/队列满.json @@ -0,0 +1,94 @@ +{ + "op": 0, + "s": 34, + "t": "MESSAGE_CREATE", + "d": { + "mention_everyone": false, + "pinned": false, + "components": [ + { + "components": [ + { + "custom_id": "MJ::Job::Retry::64a7ec94-9607-492e-99ac-8550a4e7faf2", + "style": 2, + "label": "Resubmit", + "type": 2 + } + ], + "type": 1 + } + ], + "attachments": [], + "interaction_metadata": { + "user_id": "976067621160108072", + "name": "imagine", + "authorizing_integration_owners": { + "0": "1234483730148626542" + }, + "id": "1234491017005105172", + "type": 2, + "user": { + "global_name": "Sequoiab", + "avatar_decoration_data": null, + "clan": null, + "public_flags": 0, + "id": "976067621160108072", + "avatar": "2ef47ed59695ff8bcdc2254f5189b70c", + "username": "sequoiab2281", + "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": "1234491015356743680", + "application_id": "936929561302675456", + "edited_timestamp": null, + "content": "", + "tts": false, + "webhook_id": "936929561302675456", + "mentions": [], + "interaction": { + "name": "imagine", + "id": "1234491017005105172", + "type": 2, + "user": { + "global_name": "Sequoiab", + "avatar_decoration_data": null, + "clan": null, + "public_flags": 0, + "id": "976067621160108072", + "avatar": "2ef47ed59695ff8bcdc2254f5189b70c", + "username": "sequoiab2281", + "discriminator": "0" + } + }, + "position": 0, + "id": "1234491019211575376", + "embeds": [ + { + "content_scan_version": 0, + "color": 16711680, + "footer": { + "text": "/imagine Doctor Strange vs. Ultraman --v 6" + }, + "description": "Your job queue is full. Please wait for a job to finish first, then resubmit this one.", + "type": "rich", + "title": "Queue full" + } + ], + "channel_id": "1234490728575533057", + "timestamp": "2024-04-29T13:06:34.714000+00:00" + } +} \ No newline at end of file