AchyuthGamer commited on
Commit
8e5040f
1 Parent(s): 8d557e3

Update server/backend.py

Browse files
Files changed (1) hide show
  1. server/backend.py +4 -4
server/backend.py CHANGED
@@ -99,7 +99,7 @@ def fetch_search_results(query):
99
  search = get('https://ddg-api.herokuapp.com/search',
100
  params={
101
  'query': query,
102
- 'limit': 3,
103
  })
104
 
105
  snippets = ""
@@ -167,10 +167,10 @@ def getJailbreak(jailbreak):
167
  :return: Jailbreak instructions if provided, otherwise None
168
  """
169
  if jailbreak == "gpt-default":
170
- special_instructions['gpt-default']
171
  if jailbreak in special_instructions:
172
- special_instructions['gpt-default']
173
- return special_instructions['gpt-default']
174
  else:
175
  return None
176
  else:
 
99
  search = get('https://ddg-api.herokuapp.com/search',
100
  params={
101
  'query': query,
102
+ 'limit': 10,
103
  })
104
 
105
  snippets = ""
 
167
  :return: Jailbreak instructions if provided, otherwise None
168
  """
169
  if jailbreak == "gpt-default":
170
+ special_instructions[0]['gpt-default']
171
  if jailbreak in special_instructions:
172
+ special_instructions[0]['gpt-default']
173
+ return special_instructions[0]['gpt-default']
174
  else:
175
  return None
176
  else: