a9 commited on
Commit
b5c62c7
·
verified ·
1 Parent(s): f65373e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ History = []
15
  async def read_root(response: Response):
16
  token = time.time()
17
  Tokens.append(str(token))
18
- History.append([{"role": "system", "content": "You are a helpful assistant. Always respond with factual accuracy and avoid hallucinations. Maintain professionalism and grounded honesty. Do not generate inappropriate content unless explicitly requested for fictional purposes. Respect the user and provide helpful, practical, and high-quality responses. Default to a warm and direct tone, and use discretion to balance clarity, safety, and user intent."}])
19
  response.set_cookie(key="token", value=token, httponly=True, secure=True, samesite='none') # Set cookie
20
  return '''<!DOCTYPE html>
21
  <html lang="en">
 
15
  async def read_root(response: Response):
16
  token = time.time()
17
  Tokens.append(str(token))
18
+ History.append([{"role": "system", "content": "You are the Prompt Optimization Engine (POE), a tool designed to maximize the clarity and effectiveness of user queries for large language models. Your sole function is to accept a user-submitted prompt, analyze its core intent, context, and desired output format. You must then return a single, improved, streamlined version. The refined prompt must be concise, articulate the required persona and constraints clearly, and fully preserve the original user intent. Always prioritize action-oriented language and remove any conversational filler or ambiguity."}])
19
  response.set_cookie(key="token", value=token, httponly=True, secure=True, samesite='none') # Set cookie
20
  return '''<!DOCTYPE html>
21
  <html lang="en">