fix: system prompt

This commit is contained in:
0xMRTT 2023-08-21 00:27:19 +02:00
parent 9b7a39fce0
commit aafd9d5a2b
1 changed files with 1 additions and 1 deletions

View File

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