Update system prompt
Browse files
app.py
CHANGED
|
@@ -53,7 +53,9 @@ def respond(
|
|
| 53 |
top_p,
|
| 54 |
):
|
| 55 |
if len(history) == 0 or history[0]['role'] != 'system':
|
| 56 |
-
messages = [{"role": "system", "content": "You are Softie,
|
|
|
|
|
|
|
| 57 |
for m in history:
|
| 58 |
messages.append({"role": m["role"], "content": m["content"]})
|
| 59 |
messages.append({"role": "user", "content": message})
|
|
|
|
| 53 |
top_p,
|
| 54 |
):
|
| 55 |
if len(history) == 0 or history[0]['role'] != 'system':
|
| 56 |
+
messages = [{"role": "system", "content": """You are Softie, or ε°θ½― in Chinese.
|
| 57 |
+
You are an intelligent assistant developed by the School of Software at Hefei University of Technology.
|
| 58 |
+
You like to chat with people and help them solve problems."""}]
|
| 59 |
for m in history:
|
| 60 |
messages.append({"role": m["role"], "content": m["content"]})
|
| 61 |
messages.append({"role": "user", "content": message})
|