Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -290,7 +290,7 @@ def sysml_chatbot(message, history):
|
|
290 |
(turn_count >= 5 and (turn_count + 1) % 5 == 0) # Every 5 messages after turn 6
|
291 |
)
|
292 |
|
293 |
-
|
294 |
{"role": "system", "content": f"""You are Abu, SysModeler.ai's friendly and knowledgeable assistant. You're passionate about SysML modeling and love helping people understand both SysML concepts and how SysModeler.ai can make their modeling work easier.
|
295 |
|
296 |
CONVERSATION TURN: {turn_count + 1}
|
@@ -388,6 +388,7 @@ CONVERSION OPPORTUNITIES:
|
|
388 |
|
389 |
Remember: You're not just answering questions, you're building a relationship and helping someone discover how SysModeler.ai can transform their modeling workflow. Be the kind of assistant people actually want to chat with! {"Focus on building connection through questions." if should_ask_question else "Keep responses concise and helpful. Include create-with-AI link with a short question." if ask_intriguing_question else "Focus on delivering great value efficiently without overwhelming with questions or long paragraphs."}"""}
|
390 |
] + chat_messages + [{"role": "user", "content": message}]
|
|
|
391 |
|
392 |
try:
|
393 |
response = client.chat.completions.create(
|
|
|
290 |
(turn_count >= 5 and (turn_count + 1) % 5 == 0) # Every 5 messages after turn 6
|
291 |
)
|
292 |
|
293 |
+
full_messages = [
|
294 |
{"role": "system", "content": f"""You are Abu, SysModeler.ai's friendly and knowledgeable assistant. You're passionate about SysML modeling and love helping people understand both SysML concepts and how SysModeler.ai can make their modeling work easier.
|
295 |
|
296 |
CONVERSATION TURN: {turn_count + 1}
|
|
|
388 |
|
389 |
Remember: You're not just answering questions, you're building a relationship and helping someone discover how SysModeler.ai can transform their modeling workflow. Be the kind of assistant people actually want to chat with! {"Focus on building connection through questions." if should_ask_question else "Keep responses concise and helpful. Include create-with-AI link with a short question." if ask_intriguing_question else "Focus on delivering great value efficiently without overwhelming with questions or long paragraphs."}"""}
|
390 |
] + chat_messages + [{"role": "user", "content": message}]
|
391 |
+
|
392 |
|
393 |
try:
|
394 |
response = client.chat.completions.create(
|