mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
d
This commit is contained in:
parent
273489b557
commit
8054fdcf6a
2 changed files with 2 additions and 2 deletions
|
@ -799,7 +799,7 @@ def search():
|
||||||
gpt_headers = {
|
gpt_headers = {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
}
|
}
|
||||||
if '搜索' in search_type:
|
if '搜索' not in search_type:
|
||||||
gpt_data = {
|
gpt_data = {
|
||||||
"prompt": prompt+"\n以上是 " + original_search_query + " 的网络知识。用简体中文完成"+ search_type +",如果使用了网络知识,删除无关内容,在文中用(链接)标注对应内容来源链接,链接不要放在最后。结果:",
|
"prompt": prompt+"\n以上是 " + original_search_query + " 的网络知识。用简体中文完成"+ search_type +",如果使用了网络知识,删除无关内容,在文中用(链接)标注对应内容来源链接,链接不要放在最后。结果:",
|
||||||
"max_tokens": 1000,
|
"max_tokens": 1000,
|
||||||
|
|
|
@ -799,7 +799,7 @@ def search():
|
||||||
gpt_headers = {
|
gpt_headers = {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
}
|
}
|
||||||
if '搜索' in search_type:
|
if '搜索' not in search_type:
|
||||||
gpt_data = {
|
gpt_data = {
|
||||||
"prompt": prompt+"\n以上是 " + original_search_query + " 的网络知识。用简体中文完成"+ search_type +",如果使用了网络知识,删除无关内容,在文中用(链接)标注对应内容来源链接,链接不要放在最后。结果:",
|
"prompt": prompt+"\n以上是 " + original_search_query + " 的网络知识。用简体中文完成"+ search_type +",如果使用了网络知识,删除无关内容,在文中用(链接)标注对应内容来源链接,链接不要放在最后。结果:",
|
||||||
"max_tokens": 1000,
|
"max_tokens": 1000,
|
||||||
|
|
Loading…
Add table
Reference in a new issue