peterpeter8585 commited on
Commit
be785ab
1 Parent(s): a7bf877

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -98,9 +98,9 @@ def respond(
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. [USER]"+system_message
101
- web_results = search(text)
102
  web2 = ' '.join([f"Link: {res['link']}\nText: {res['text']}\n\n" for res in web_results])
103
- formatted_prompt = messages + text + "[WEB]" + str(web2) + "[OpenGPT 4o]"
104
 
105
 
106
  response = ""
 
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. [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]"
104
 
105
 
106
  response = ""