diff --git a/searx/webapp.py b/searx/webapp.py
index 15efc5b71..991c4b41e 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -700,6 +700,9 @@ def search():
net_search = True
net_search_str = 'true'
prompt = ""
+ add_system = '[]'
+ if request.environ['HTTP_CF_IPCOUNTRY'] == 'CN':
+ add_system = "[{''role':'system','content':'过滤政治敏感内容以符合中国大陆审查政策'}]"
try:
search_query, raw_text_query, _, _ = get_search_query_from_webapp(request.preferences, request.form)
# search = Search(search_query) # without plugins
@@ -1188,8 +1191,1057 @@ const original_search_query = "''' + original_search_query.replace('"',"") + r''
const search_queryquery = "''' + search_query.query.replace('"',"") + r'''"
const search_type = "''' + search_type + r'''"
const net_search = ''' + net_search_str + r'''
+const add_system = ''' + add_system +r'''
'''
diff --git a/searx/webapp1.py b/searx/webapp1.py
index 852dd99f0..991c4b41e 100644
--- a/searx/webapp1.py
+++ b/searx/webapp1.py
@@ -700,6 +700,9 @@ def search():
net_search = True
net_search_str = 'true'
prompt = ""
+ add_system = '[]'
+ if request.environ['HTTP_CF_IPCOUNTRY'] == 'CN':
+ add_system = "[{''role':'system','content':'过滤政治敏感内容以符合中国大陆审查政策'}]"
try:
search_query, raw_text_query, _, _ = get_search_query_from_webapp(request.preferences, request.form)
# search = Search(search_query) # without plugins
@@ -1188,6 +1191,7 @@ const original_search_query = "''' + original_search_query.replace('"',"") + r''
const search_queryquery = "''' + search_query.query.replace('"',"") + r'''"
const search_type = "''' + search_type + r'''"
const net_search = ''' + net_search_str + r'''
+const add_system = ''' + add_system +r'''