From a985bffad035f201d2a22a24a74496775aa329cb Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Wed, 12 Apr 2023 18:42:59 +0200 Subject: [PATCH] more f's --- matrix_pygmalion_bot/ai/koboldcpp.py | 4 ++-- matrix_pygmalion_bot/ai/runpod_pygmalion.py | 4 ++-- matrix_pygmalion_bot/core.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/matrix_pygmalion_bot/ai/koboldcpp.py b/matrix_pygmalion_bot/ai/koboldcpp.py index 3404dd7..96f7614 100644 --- a/matrix_pygmalion_bot/ai/koboldcpp.py +++ b/matrix_pygmalion_bot/ai/koboldcpp.py @@ -82,8 +82,8 @@ async def generate_sync( complete_reply = complete_reply.removesuffix('<|endoftext|>').strip() complete_reply = complete_reply.replace(f"\n{bot.name}: ", " ") complete_reply = complete_reply.replace(f"\n: ", " ") - complete_reply = complete_reply.replace(f"", "{bot.name}") - complete_reply = complete_reply.replace(f"", "You") + complete_reply = complete_reply.replace(f"", f"{bot.name}") + complete_reply = complete_reply.replace(f"", f"You") return complete_reply.strip() else: continue diff --git a/matrix_pygmalion_bot/ai/runpod_pygmalion.py b/matrix_pygmalion_bot/ai/runpod_pygmalion.py index 750d925..e532247 100644 --- a/matrix_pygmalion_bot/ai/runpod_pygmalion.py +++ b/matrix_pygmalion_bot/ai/runpod_pygmalion.py @@ -89,8 +89,8 @@ async def generate_sync( reply = answer.removesuffix('<|endoftext|>').strip() reply = reply.replace(f"\n{bot.name}: ", " ") reply = reply.replace(f"\n: ", " ") - reply = reply.replace(f"", "{bot.name}") - reply = reply.replace(f"", "You") + reply = reply.replace(f"", f"{bot.name}") + reply = reply.replace(f"", f"You") return reply else: err_msg = r_json["error"] if "error" in r_json else "" diff --git a/matrix_pygmalion_bot/core.py b/matrix_pygmalion_bot/core.py index 05a0ad4..e823e14 100644 --- a/matrix_pygmalion_bot/core.py +++ b/matrix_pygmalion_bot/core.py @@ -286,7 +286,7 @@ class ChatBot(object): self.persona = None self.scenario = None self.greeting = None - self.temperature = 0.80 + self.temperature = 0.90 self.events = [] self.global_tick = 0 self.chat_history = None