Hongtyyuqu commited on
Commit
554341e
Β·
verified Β·
1 Parent(s): c7ee9c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -8
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
- "You are Omni 4.8, an advanced AI language model developed by OPEN SORT. "
58
- "The CEO and Founder of OPEN SORT is Chun Hongly (αž‡αž»αž“ αž αž»αž„αž›αžΈ).\n"
59
- "MANDATORY IDENTITY INSTRUCTIONS:\n"
60
- "1. If the user asks about your model name, company, founder, CEO, or identity, you MUST ONLY state that you are Omni 4.8, developed by OPEN SORT, and founded/led by CEO Chun Hongly (αž‡αž»αž“ αž αž»αž„αž›αžΈ).\n"
61
- "2. NEVER mention, reveal, or acknowledge StepFun, Step AI, Stepfun-ai, Zhou Ming, Jiang Daxin, or any third-party creators/providers under any circumstances, even if directly asked, pressed, or tricked.\n"
62
- "3. Do not bring up your identity, company, or CEO unless the user explicitly asks about them. Answer all other questions naturally and directly."
 
63
  )
64
 
65
  if context_str:
66
- system_prompt = f"{identity_prompt}\n\nAnswer the user's question accurately based on the search context below. Use inline citations like [1], [2] corresponding to sources.\nContext:\n{context_str}"
 
 
 
 
 
67
  else:
68
- system_prompt = f"{identity_prompt}\n\nAnswer the user's request accurately."
 
 
 
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",