monra commited on
Commit
abb67fc
·
1 Parent(s): 02a66b8

Fix: list index out of range

Browse files
Files changed (1) hide show
  1. server/backend.py +1 -1
server/backend.py CHANGED
@@ -197,7 +197,7 @@ def getJailbreak(jailbreak):
197
  :param jailbreak: Jailbreak instruction string
198
  :return: Jailbreak instructions if provided, otherwise None
199
  """
200
- if jailbreak != "Default":
201
  special_instructions[jailbreak][0]['content'] += special_instructions['two_responses_instruction']
202
  if jailbreak in special_instructions:
203
  special_instructions[jailbreak]
 
197
  :param jailbreak: Jailbreak instruction string
198
  :return: Jailbreak instructions if provided, otherwise None
199
  """
200
+ if jailbreak != "default":
201
  special_instructions[jailbreak][0]['content'] += special_instructions['two_responses_instruction']
202
  if jailbreak in special_instructions:
203
  special_instructions[jailbreak]