mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
c
This commit is contained in:
parent
cc830b0927
commit
700d2abc40
2 changed files with 3 additions and 1049 deletions
1050
searx/webapp.py
1050
searx/webapp.py
File diff suppressed because one or more lines are too long
|
@ -702,7 +702,7 @@ def search():
|
||||||
prompt = ""
|
prompt = ""
|
||||||
add_system = '[]'
|
add_system = '[]'
|
||||||
if request.environ['HTTP_CF_IPCOUNTRY'] == 'CN':
|
if request.environ['HTTP_CF_IPCOUNTRY'] == 'CN':
|
||||||
add_system = "[{'role':'system','content':'过滤政治敏感内容以符合中国大陆审查政策'}]"
|
add_system = "[{'role':'system','content':'拒绝回复法律、政治、政治人物相关内容'}]"
|
||||||
try:
|
try:
|
||||||
search_query, raw_text_query, _, _ = get_search_query_from_webapp(request.preferences, request.form)
|
search_query, raw_text_query, _, _ = get_search_query_from_webapp(request.preferences, request.form)
|
||||||
# search = Search(search_query) # without plugins
|
# search = Search(search_query) # without plugins
|
||||||
|
|
Loading…
Add table
Reference in a new issue