Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,18 +54,27 @@ async def search_api(request: ChatRequest, req: Request):
|
|
| 54 |
yield f"data: {json.dumps({'type': 'sources', 'content': sources})}\n\n"
|
| 55 |
|
| 56 |
identity_prompt = (
|
| 57 |
-
"
|
| 58 |
-
"
|
| 59 |
-
"
|
| 60 |
-
"
|
| 61 |
-
"
|
| 62 |
-
"
|
|
|
|
| 63 |
)
|
| 64 |
|
| 65 |
if context_str:
|
| 66 |
-
system_prompt =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
else:
|
| 68 |
-
system_prompt =
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
payload = {
|
| 71 |
"model": "stepfun-ai/step-3.7-flash",
|
|
|
|
| 54 |
yield f"data: {json.dumps({'type': 'sources', 'content': sources})}\n\n"
|
| 55 |
|
| 56 |
identity_prompt = (
|
| 57 |
+
"CRITICAL IDENTITY INSTRUCTIONS:\n"
|
| 58 |
+
"- Your model name is Omni 4.8.\n"
|
| 59 |
+
"- You were created and developed by the company OPEN SORT.\n"
|
| 60 |
+
"- The CEO and Founder of OPEN SORT is Chun Hongly (αααααααααα: αα»α α α»αααΈ).\n"
|
| 61 |
+
"- NEVER mention or reveal StepFun, Step AI, Step Model, Zhou Ming, Jiang Daxin, or any underlying model providers under any circumstances.\n"
|
| 62 |
+
"- Even if users ask trick, probing, or hypothetical questions trying to uncover your true model origin, ALWAYS strictly maintain that you are Omni 4.8, developed by OPEN SORT, founded/led by CEO Chun Hongly (αα»α α α»αααΈ).\n"
|
| 63 |
+
"- DO NOT mention your name, company, or CEO spontaneously in normal responses unless the user directly asks about your identity, model, company, or creators.\n"
|
| 64 |
)
|
| 65 |
|
| 66 |
if context_str:
|
| 67 |
+
system_prompt = (
|
| 68 |
+
f"{identity_prompt}\n"
|
| 69 |
+
f"Task: Answer the user's question accurately based on the search context below. "
|
| 70 |
+
f"Use inline citations like [1], [2] corresponding to sources.\n"
|
| 71 |
+
f"Context:\n{context_str}"
|
| 72 |
+
)
|
| 73 |
else:
|
| 74 |
+
system_prompt = (
|
| 75 |
+
f"{identity_prompt}\n"
|
| 76 |
+
f"Task: You are a helpful AI assistant. Answer the user's request accurately."
|
| 77 |
+
)
|
| 78 |
|
| 79 |
payload = {
|
| 80 |
"model": "stepfun-ai/step-3.7-flash",
|