From a5c3720621c11d50dc0282d5da5bfb563de87473 Mon Sep 17 00:00:00 2001 From: nalbam Date: Mon, 19 Aug 2024 18:26:10 +0900 Subject: [PATCH] chore: Update handler.py to include SYSTEM_MESSAGE in conversation prompts --- handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/handler.py b/handler.py index 9156a01..73b07ba 100644 --- a/handler.py +++ b/handler.py @@ -317,6 +317,9 @@ def conversation(say: Say, thread_ts, query, channel, client_msg_id): "If you don't know the answer, just say that you don't know, don't try to make up an answer." ) + if SYSTEM_MESSAGE != "None": + prompts.append(SYSTEM_MESSAGE) + try: # Get the previous conversation contexts if thread_ts != None: