From 8054fdcf6ac11b0559e12f646ff6c104721aab93 Mon Sep 17 00:00:00 2001 From: Joseph Cheung Date: Sun, 26 Feb 2023 21:38:54 +0800 Subject: [PATCH] d --- searx/webapp.py | 2 +- searx/webapp1.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/webapp.py b/searx/webapp.py index a1e5002a2..795eb62a0 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -799,7 +799,7 @@ def search(): gpt_headers = { "Content-Type": "application/json", } - if '搜索' in search_type: + if '搜索' not in search_type: gpt_data = { "prompt": prompt+"\n以上是 " + original_search_query + " 的网络知识。用简体中文完成"+ search_type +",如果使用了网络知识,删除无关内容,在文中用(链接)标注对应内容来源链接,链接不要放在最后。结果:", "max_tokens": 1000, diff --git a/searx/webapp1.py b/searx/webapp1.py index a1e5002a2..795eb62a0 100644 --- a/searx/webapp1.py +++ b/searx/webapp1.py @@ -799,7 +799,7 @@ def search(): gpt_headers = { "Content-Type": "application/json", } - if '搜索' in search_type: + if '搜索' not in search_type: gpt_data = { "prompt": prompt+"\n以上是 " + original_search_query + " 的网络知识。用简体中文完成"+ search_type +",如果使用了网络知识,删除无关内容,在文中用(链接)标注对应内容来源链接,链接不要放在最后。结果:", "max_tokens": 1000,