This commit is contained in:
Joseph Cheung 2023-03-02 19:43:18 +08:00
parent 5197aba84f
commit cc830b0927
2 changed files with 2 additions and 2 deletions

View file

@ -702,7 +702,7 @@ def search():
prompt = ""
add_system = '[]'
if request.environ['HTTP_CF_IPCOUNTRY'] == 'CN':
add_system = "[{''role':'system','content':'过滤政治敏感内容以符合中国大陆审查政策'}]"
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

View file

@ -702,7 +702,7 @@ def search():
prompt = ""
add_system = '[]'
if request.environ['HTTP_CF_IPCOUNTRY'] == 'CN':
add_system = "[{''role':'system','content':'过滤政治敏感内容以符合中国大陆审查政策'}]"
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