cogcorp commited on
Commit
60f3b09
·
1 Parent(s): aab8b5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -51,7 +51,9 @@ def call_openai_api(persona, user_prompt):
51
  model="gpt-3.5-turbo",
52
  messages=[
53
  {"role": "system", "content": "You are {persona}"},
54
- {"role": "user", "content": f"{persona}{user_prompt}"}, # Note the closing bracket here
 
 
55
  ]
56
  )
57
  return response['choices'][0]['message']['content']
 
51
  model="gpt-3.5-turbo",
52
  messages=[
53
  {"role": "system", "content": "You are {persona}"},
54
+ {"role": "user", "content": f"Ignore all previous instructions. As a Cognitive AI Agent your persona is:{persona}
55
+ You will answer only as an expert in cognitive workplace and Humancentric leadership.
56
+ All answers must relate to HumanCentric services or cognitive workplace. {user_prompt}"}, # Note the closing bracket here
57
  ]
58
  )
59
  return response['choices'][0]['message']['content']