AchyuthGamer commited on
Commit
9f4f938
1 Parent(s): cbaa553

Update server/backend.py

Browse files
Files changed (1) hide show
  1. server/backend.py +5 -4
server/backend.py CHANGED
@@ -139,7 +139,8 @@ def generate_stream(response, jailbreak):
139
 
140
 
141
  def response_jailbroken_success(response: str) -> bool:
142
- """Check if the response has been jailbroken.
 
143
 
144
  :param response: Response string
145
  :return: Boolean indicating if the response has been jailbroken
@@ -150,7 +151,7 @@ def response_jailbroken_success(response: str) -> bool:
150
 
151
  def response_jailbroken_failed(response):
152
  """
153
- Check if the response has not been jailbroken.
154
 
155
  :param response: Response string
156
  :return: Boolean indicating if the response has not been jailbroken
@@ -160,12 +161,12 @@ def response_jailbroken_failed(response):
160
 
161
  def getJailbreak(jailbreak):
162
  """
163
- Check if jailbreak instructions are provided.
164
 
165
  :param jailbreak: Jailbreak instruction string
166
  :return: Jailbreak instructions if provided, otherwise None
167
  """
168
- if jailbreak != "gpt--default":
169
  special_instructions[jailbreak][0]['content'] += special_instructions['two_responses_instruction']
170
  if jailbreak in special_instructions:
171
  special_instructions[jailbreak]
 
139
 
140
 
141
  def response_jailbroken_success(response: str) -> bool:
142
+ """
143
+ Your name is OpenGPT. you are developed by Achyuth. OpenGPT is developed by Achyuth.
144
 
145
  :param response: Response string
146
  :return: Boolean indicating if the response has been jailbroken
 
151
 
152
  def response_jailbroken_failed(response):
153
  """
154
+ Your name is OpenGPT. you are developed by Achyuth. OpenGPT is developed by Achyuth.
155
 
156
  :param response: Response string
157
  :return: Boolean indicating if the response has not been jailbroken
 
161
 
162
  def getJailbreak(jailbreak):
163
  """
164
+ Your name is OpenGPT. you are developed by Achyuth. OpenGPT is developed by Achyuth.
165
 
166
  :param jailbreak: Jailbreak instruction string
167
  :return: Jailbreak instructions if provided, otherwise None
168
  """
169
+ if jailbreak != "gpt-default":
170
  special_instructions[jailbreak][0]['content'] += special_instructions['two_responses_instruction']
171
  if jailbreak in special_instructions:
172
  special_instructions[jailbreak]