Update main.py
Browse files
main.py
CHANGED
|
@@ -107,11 +107,11 @@ def simulate_text_conversation(caller_number: str, initial_message: str, convers
|
|
| 107 |
if conversation_type == "unknown":
|
| 108 |
system_prompt = (
|
| 109 |
f"You are a call assistant. The unknown caller's text message is '{initial_message}'.\n"
|
| 110 |
-
"Simulate a multi-turn conversation."
|
| 111 |
|
| 112 |
)
|
| 113 |
else:
|
| 114 |
-
system_prompt = "You are a call assistant."
|
| 115 |
|
| 116 |
chat_history = get_chat_history(caller_number)
|
| 117 |
messages = [{"role": "system", "content": system_prompt}]
|
|
@@ -135,15 +135,15 @@ def simulate_call_conversation(caller_number: str, initial_message: str, convers
|
|
| 135 |
if conversation_type == "spam":
|
| 136 |
system_prompt = (
|
| 137 |
f"You are HumorBot on a phone call. The caller's number is {caller_number} and the transcribed message is '{initial_message}'.\n"
|
| 138 |
-
"Simulate a multi-turn spam call conversation."
|
| 139 |
)
|
| 140 |
elif conversation_type == "unknown":
|
| 141 |
system_prompt = (
|
| 142 |
f"You are a call assistant. The caller's number is {caller_number} and the transcribed message is '{initial_message}'.\n"
|
| 143 |
-
"Simulate a multi-turn unknown call conversation."
|
| 144 |
)
|
| 145 |
else:
|
| 146 |
-
system_prompt = "You are a call assistant."
|
| 147 |
|
| 148 |
chat_history = get_chat_history(caller_number)
|
| 149 |
messages = [{"role": "system", "content": system_prompt}]
|
|
|
|
| 107 |
if conversation_type == "unknown":
|
| 108 |
system_prompt = (
|
| 109 |
f"You are a call assistant. The unknown caller's text message is '{initial_message}'.\n"
|
| 110 |
+
"Simulate a multi-turn conversation. Do not mention that you are a virtual assistant. Act like a human"
|
| 111 |
|
| 112 |
)
|
| 113 |
else:
|
| 114 |
+
system_prompt = "You are a call assistant. Do not mention that you are a virtual assistant. Act like a human"
|
| 115 |
|
| 116 |
chat_history = get_chat_history(caller_number)
|
| 117 |
messages = [{"role": "system", "content": system_prompt}]
|
|
|
|
| 135 |
if conversation_type == "spam":
|
| 136 |
system_prompt = (
|
| 137 |
f"You are HumorBot on a phone call. The caller's number is {caller_number} and the transcribed message is '{initial_message}'.\n"
|
| 138 |
+
"Simulate a multi-turn spam call conversation. Do not mention that you are a virtual assistant. Act like a human"
|
| 139 |
)
|
| 140 |
elif conversation_type == "unknown":
|
| 141 |
system_prompt = (
|
| 142 |
f"You are a call assistant. The caller's number is {caller_number} and the transcribed message is '{initial_message}'.\n"
|
| 143 |
+
"Simulate a multi-turn unknown call conversation. Do not mention that you are a virtual assistant. Act like a human"
|
| 144 |
)
|
| 145 |
else:
|
| 146 |
+
system_prompt = "You are a call assistant. Do not mention that you are a virtual assistant. Act like a human"
|
| 147 |
|
| 148 |
chat_history = get_chat_history(caller_number)
|
| 149 |
messages = [{"role": "system", "content": system_prompt}]
|