Spaces:
Runtime error
Runtime error
michailroussos
commited on
Commit
·
1f11a55
1
Parent(s):
bc4a9b2
more
Browse files
app.py
CHANGED
@@ -81,9 +81,9 @@ def respond(message, history, system_message, max_tokens, temperature, top_p):
|
|
81 |
print(f"Raw Response: {response}")
|
82 |
|
83 |
# Check and filter response
|
84 |
-
if "system" in response.lower():
|
85 |
-
|
86 |
-
|
87 |
|
88 |
# Prepare return history in OpenAI messages format
|
89 |
return_messages = []
|
|
|
81 |
print(f"Raw Response: {response}")
|
82 |
|
83 |
# Check and filter response
|
84 |
+
#if "system" in response.lower():
|
85 |
+
# print("WARNING: System message detected in response")
|
86 |
+
# response = "Hello! How can I assist you today?"
|
87 |
|
88 |
# Prepare return history in OpenAI messages format
|
89 |
return_messages = []
|