Hongtyyuqu commited on
Commit
c7ee9c3
·
verified ·
1 Parent(s): d79ac7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -53,10 +53,19 @@ async def search_api(request: ChatRequest, req: Request):
53
 
54
  yield f"data: {json.dumps({'type': 'sources', 'content': sources})}\n\n"
55
 
 
 
 
 
 
 
 
 
 
56
  if context_str:
57
- system_prompt = f"Answer the user's question accurately based on the search context below. Use inline citations like [1], [2] corresponding to sources.\nContext:\n{context_str}"
58
  else:
59
- system_prompt = "You are a helpful AI assistant. Answer the user's request accurately."
60
 
61
  payload = {
62
  "model": "stepfun-ai/step-3.7-flash",
 
53
 
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",