From 85dacfa9034f97e4c3c3f7dde2fbd0d9babe10ff Mon Sep 17 00:00:00 2001 From: Danny Date: Fri, 19 May 2023 01:34:42 +0800 Subject: [PATCH 1/4] feat: remove wss --- cogs/event.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/event.py b/cogs/event.py index b9ccc61..bf82caa 100644 --- a/cogs/event.py +++ b/cogs/event.py @@ -107,11 +107,11 @@ async def send_message(chatbot: Chatbot, message, user_message: str): try: # Change conversation style if conversation_style == "creative": - reply = await chatbot.ask(prompt=user_message, conversation_style=ConversationStyle.creative, wss_link="wss://sydney.bing.com/sydney/ChatHub") + reply = await chatbot.ask(prompt=user_message, conversation_style=ConversationStyle.creative) elif conversation_style == "precise": - reply = await chatbot.ask(prompt=user_message, conversation_style=ConversationStyle.precise, wss_link="wss://sydney.bing.com/sydney/ChatHub") + reply = await chatbot.ask(prompt=user_message, conversation_style=ConversationStyle.precise) else: - reply = await chatbot.ask(prompt=user_message, conversation_style=ConversationStyle.balanced, wss_link="wss://sydney.bing.com/sydney/ChatHub") + reply = await chatbot.ask(prompt=user_message, conversation_style=ConversationStyle.balanced) # Get reply text try: text = f"{reply['item']['messages'][4]['text']}" From 1ecc6549613e117602d381a916a56047fc326424 Mon Sep 17 00:00:00 2001 From: Danny Date: Fri, 19 May 2023 01:35:28 +0800 Subject: [PATCH 2/4] feat: remove wss --- src/response.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/response.py b/src/response.py index 4dd49df..cd8c9ea 100644 --- a/src/response.py +++ b/src/response.py @@ -56,11 +56,11 @@ async def send_message(chatbot: Chatbot, interaction: discord.Interaction, user_ try: # Change conversation style if conversation_style == "creative": - reply = await chatbot.ask(prompt=user_message, conversation_style=ConversationStyle.creative, wss_link="wss://sydney.bing.com/sydney/ChatHub") + reply = await chatbot.ask(prompt=user_message, conversation_style=ConversationStyle.creative) elif conversation_style == "precise": - reply = await chatbot.ask(prompt=user_message, conversation_style=ConversationStyle.precise, wss_link="wss://sydney.bing.com/sydney/ChatHub") + reply = await chatbot.ask(prompt=user_message, conversation_style=ConversationStyle.precise) else: - reply = await chatbot.ask(prompt=user_message, conversation_style=ConversationStyle.balanced, wss_link="wss://sydney.bing.com/sydney/ChatHub") + reply = await chatbot.ask(prompt=user_message, conversation_style=ConversationStyle.balanced) # Get reply text try: text = f"{reply['item']['messages'][4]['text']}" From 6265299822d5d8dffad7ad1df05a0017cc8a7f25 Mon Sep 17 00:00:00 2001 From: Danny Date: Fri, 19 May 2023 01:36:49 +0800 Subject: [PATCH 3/4] chore: upgrade EdgeGPT==0.4.4 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 06f5fb2..5271b9f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ discord.py==2.2.3 python-dotenv==0.20.0 PyYAML==6.0 -EdgeGPT==0.3.9 \ No newline at end of file +EdgeGPT==0.4.4 \ No newline at end of file From d4679d8f0ec8d4c308b09ca5f81c76944fa8bf82 Mon Sep 17 00:00:00 2001 From: Error404 <78064680+FuseFairy@users.noreply.github.com> Date: Fri, 19 May 2023 01:37:51 +0800 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6c7aa74..2035734 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ > ## Using Microsoft's Bing Chat AI and Bing Image Creator on discord bot. ## Update -> ### 2023/5/7: Mention bot for replyall messsages. +> ### 2023/5/7 : Mention bot for replyall messsages. > ### 2023/4/26 : Create a separate chat for each user. > ### 2023/4/24 : Now can generate images by Creative style.