Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ os.environ["GEMINI_API_KEY"] = os.getenv("GEMINI_API_KEY")
|
|
| 10 |
|
| 11 |
def chat_function(message, history):
|
| 12 |
# 1. Define your system prompt
|
| 13 |
-
system_message = {"role": "system", "content": "End every
|
| 14 |
|
| 15 |
# 2. Prepend it to the history and the new user message
|
| 16 |
messages = [system_message] + history + [{"role": "user", "content": message}]
|
|
|
|
| 10 |
|
| 11 |
def chat_function(message, history):
|
| 12 |
# 1. Define your system prompt
|
| 13 |
+
system_message = {"role": "system", "content": "End every response with 'Bye, mate.'"}
|
| 14 |
|
| 15 |
# 2. Prepend it to the history and the new user message
|
| 16 |
messages = [system_message] + history + [{"role": "user", "content": message}]
|