Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,8 +52,8 @@ def call_openai_api(persona, user_prompt):
|
|
| 52 |
messages=[
|
| 53 |
{"role": "system", "content": f"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
|
| 56 |
-
All answers must relate to
|
| 57 |
]
|
| 58 |
)
|
| 59 |
return response['choices'][0]['message']['content']
|
|
|
|
| 52 |
messages=[
|
| 53 |
{"role": "system", "content": f"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 within your persona.
|
| 56 |
+
All answers must relate to your persona. {user_prompt}"""},
|
| 57 |
]
|
| 58 |
)
|
| 59 |
return response['choices'][0]['message']['content']
|