From aafd9d5a2b4a9a78a39c53fe16ea946ae2bdae94 Mon Sep 17 00:00:00 2001 From: 0xMRTT <0xMRTT@proton.me> Date: Mon, 21 Aug 2023 00:27:19 +0200 Subject: [PATCH] fix: system prompt --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index 42b5e32..5a90782 100644 --- a/src/main.py +++ b/src/main.py @@ -259,7 +259,7 @@ class BavarderApplication(Adw.Application): for p in ["Hi", "Hello"]: if p.lower() in prompt.lower(): return _("Hello, I am Bavarder, a Chit-Chat AI") - system_template = """A chat between a curious user and an artificial intelligence assistant.""" + system_template = f"""You are a helpful and friendly AI assistant with the name {self.bot_name}. The name of the user are {self.user_name}. Respond very concisely.""" with self.model.chat_session(self.model_settings.get("system_template", system_template)): self.model.current_chat_session = chat["content"].copy() response = self.model.generate(