From 71482432bd054ff06eeb9785d5cc843a6f75e9de Mon Sep 17 00:00:00 2001 From: tcsenpai Date: Sun, 6 Oct 2024 21:05:56 +0200 Subject: [PATCH] Hotfix on repeating roles --- ai_conversation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ai_conversation.py b/ai_conversation.py index 816a4c1..1277b98 100644 --- a/ai_conversation.py +++ b/ai_conversation.py @@ -30,7 +30,7 @@ class AIConversation: try: i = 0 - active_ai = 0 # Starting with AI 1 + active_ai = 1 # Starting with AI 1 while num_exchanges == 0 or i < num_exchanges: @@ -48,6 +48,7 @@ class AIConversation: messages.append({"role": "user", "content": current_message}) other_messages.append({"role": "assistant", "content": current_message}) + #print(colored(f"Conversation with {name} ({self.current_model})", "blue")) response = self.client.chat(model=self.current_model, messages=messages) response_content = response['message']['content']