Skip to content

Commit

Permalink
chore: Update handler.py to include SYSTEM_MESSAGE in conversation pr…
Browse files Browse the repository at this point in the history
…ompts
  • Loading branch information
nalbam committed Aug 19, 2024
1 parent decd161 commit a5c3720
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a5c3720

Please sign in to comment.