From 841b5733b056a63af4e8d32c6d22da295a3fd13c Mon Sep 17 00:00:00 2001 From: Kaveen Kumarasinghe Date: Thu, 19 Jan 2023 01:19:43 -0500 Subject: [PATCH] fix conversation summarizations --- cogs/text_service_cog.py | 2 +- gpt3discord.py | 2 +- services/text_service.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cogs/text_service_cog.py b/cogs/text_service_cog.py index b480029..37c08ea 100644 --- a/cogs/text_service_cog.py +++ b/cogs/text_service_cog.py @@ -492,7 +492,7 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"): # Get the last entry from the thread's conversation history new_conversation_history.append( EmbeddedConversationItem( - self.conversation_threads[message.channel.id].history[-1] + "\n", 0 + self.conversation_threads[message.channel.id].history[-1].text + "\n", 0 ) ) self.conversation_threads[message.channel.id].history = new_conversation_history diff --git a/gpt3discord.py b/gpt3discord.py index 9c0d986..2e9d1b8 100644 --- a/gpt3discord.py +++ b/gpt3discord.py @@ -27,7 +27,7 @@ from services.environment_service import EnvService from models.openai_model import Model -__version__ = "8.3" +__version__ = "8.3.1" if sys.platform == "win32": diff --git a/services/text_service.py b/services/text_service.py index 46482eb..5cb82c9 100644 --- a/services/text_service.py +++ b/services/text_service.py @@ -245,6 +245,7 @@ class TextService: ) await converser_cog.end_conversation(ctx) + converser_cog.remove_awaiting(ctx.author.id, ctx.channel.id) return else: await ctx.reply("The conversation context limit has been reached.")