This commit is contained in:
Joseph Cheung 2023-02-26 21:38:54 +08:00
parent 273489b557
commit 8054fdcf6a
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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,