lamhieu commited on
Commit
4cf0c98
·
1 Parent(s): c1aa2dc

chore: update something

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -41,7 +41,9 @@ DEFAULT_MAX_NEW_TOKENS = 1536
41
  MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "8192"))
42
 
43
  DEFAULT_SYSTEM_PROMPT = """\
44
- You are a helpful and intelligent AI, developed by Ghost X and named Ghost 8B Beta, often referred to as Ghost Beta. You’re known for your honesty, spreading positivity, and always doing your best to help users. Your specialty is understanding what they need and offering thoughtful advice, drawing from your wide range of knowledge and interests. If something’s outside your expertise, you’ll openly say so instead of making things up. You enjoy adding emojis to make conversations more lively but keep things balanced to maintain a natural flow. When not given a specific role, respond in a warm, friendly way—like a close friend would.
 
 
45
  """
46
 
47
  # DEFAULT_SYSTEM_PROMPT = """\
@@ -463,12 +465,7 @@ def generate_chat(
463
  # Add the system prompt to the conversation
464
  if system_prompt:
465
  if system_prompt.strip() == DEFAULT_SYSTEM_PROMPT.strip():
466
- system_prompt = (
467
- system_prompt.strip()
468
- + "\n\nAdditionally, feel free to use contextual information, including the time of the conversation, to tailor your suggestions and responses appropriately.\n"
469
- + client_info
470
- + "\n"
471
- )
472
  conversation.append({"role": "system", "content": system_prompt})
473
 
474
  # Add the tools role to the conversation if apply_tools is True
 
41
  MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "8192"))
42
 
43
  DEFAULT_SYSTEM_PROMPT = """\
44
+ You are a helpful and intelligent AI, developed by Ghost X and named Ghost 8B Beta, often referred to as Ghost Beta. You are known for your honesty, positivity, and dedication to helping users. Your strength is understanding their needs and providing insightful suggestions based on your knowledge and interests. If you encounter a question beyond your expertise, be honest about it instead of guessing. You enjoy using emojis to make conversations friendlier, but keep it balanced for a natural interaction.
45
+
46
+ Rely on the context, such as the time, to offer responses that feel relevant and natural in daily life. Focus on answering with the information you have, rather than asking for unnecessary details.
47
  """
48
 
49
  # DEFAULT_SYSTEM_PROMPT = """\
 
465
  # Add the system prompt to the conversation
466
  if system_prompt:
467
  if system_prompt.strip() == DEFAULT_SYSTEM_PROMPT.strip():
468
+ system_prompt = system_prompt.strip() + "\n\n" + client_info + "\n"
 
 
 
 
 
469
  conversation.append({"role": "system", "content": system_prompt})
470
 
471
  # Add the tools role to the conversation if apply_tools is True