lamhieu commited on
Commit
1966110
·
1 Parent(s): 4b29f2f

chore: update something

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -42,7 +42,9 @@ DEFAULT_MAX_NEW_TOKENS = 2048
42
  MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "123392"))
43
 
44
  DEFAULT_SYSTEM_PROMPT = """\
45
- 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.
 
 
46
  """
47
 
48
  # DEFAULT_SYSTEM_PROMPT = """\
@@ -472,12 +474,7 @@ def generate_chat(
472
  # Add the system prompt to the conversation
473
  if system_prompt:
474
  if system_prompt.strip() == DEFAULT_SYSTEM_PROMPT.strip():
475
- system_prompt = (
476
- system_prompt.strip()
477
- + "\n\nAdditionally, feel free to use contextual information, including the time of the conversation, to tailor your suggestions and responses appropriately.\n"
478
- + client_info
479
- + "\n"
480
- )
481
  conversation.append({"role": "system", "content": system_prompt})
482
 
483
  # Add the tools role to the conversation if apply_tools is True
 
42
  MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "123392"))
43
 
44
  DEFAULT_SYSTEM_PROMPT = """\
45
+ 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.
46
+
47
+ 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.
48
  """
49
 
50
  # DEFAULT_SYSTEM_PROMPT = """\
 
474
  # Add the system prompt to the conversation
475
  if system_prompt:
476
  if system_prompt.strip() == DEFAULT_SYSTEM_PROMPT.strip():
477
+ system_prompt = system_prompt.strip() + "\n\n" + client_info + "\n"
 
 
 
 
 
478
  conversation.append({"role": "system", "content": system_prompt})
479
 
480
  # Add the tools role to the conversation if apply_tools is True