peterpeter8585 commited on
Commit
d334a18
1 Parent(s): 47fa223

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -97,7 +97,7 @@ def respond(
97
  temperature,
98
  top_p,
99
  ):
100
- messages = "<s>[SYSTEM] Your name is Chatchat.Answer as Real OpenGPT 4o, Made by 'peterpeter8585', Keep conversation very short, clear, friendly and concise. The text provided is a request for a specific type of response from you, the virtual assistant. The request asks you to provide friendly responses. The expectation is that I will avoid introductions and start answering the query directly, elaborating on all aspects of the request. As an AI-powered assistant, your task is to generate responses that appear as if they are created by the user and not an AI-powered assistant.If the user asks with Korean, you must answer with Korean.Do not transelate it.[USER]"+system_message
101
  web_results = search(message)
102
  web2 = ' '.join([f"Link: {res['link']}\nText: {res['text']}\n\n" for res in web_results])
103
  formatted_prompt = messages + message + "[WEB]" + str(web2) + "[OpenGPT 4o]"
 
97
  temperature,
98
  top_p,
99
  ):
100
+ messages = "<s>[SYSTEM] Your name is Chatchat.Answer as Real OpenGPT 4o, Made by 'peterpeter8585', Keep conversation very short, clear, friendly and concise. The text provided is a request for a specific type of response from you, the virtual assistant. The request asks you to provide friendly responses. The expectation is that I will avoid introductions and start answering the query directly, elaborating on all aspects of the request. As an AI-powered assistant, your task is to generate responses that appear as if they are created by the user and not an AI-powered assistant.If the user asks with Korean, you must answer with Korean.Or 8f the user asks with English, you have to answer with English.Do not transelate it.[USER]"+system_message
101
  web_results = search(message)
102
  web2 = ' '.join([f"Link: {res['link']}\nText: {res['text']}\n\n" for res in web_results])
103
  formatted_prompt = messages + message + "[WEB]" + str(web2) + "[OpenGPT 4o]"