fix conversation summarizations

Kaveen Kumarasinghe 2 years ago
parent 7cb19039a1
commit 841b5733b0

@ -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

@ -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":

@ -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.")

Loading…
Cancel
Save