mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
c
This commit is contained in:
parent
79616cd2a0
commit
39d9646796
2 changed files with 2 additions and 4 deletions
|
@ -832,9 +832,8 @@ def search():
|
|||
res['content'] = res['content'].replace("This Tweet was deleted by the Tweet author.","Deleted Tweet.")
|
||||
|
||||
tmp_prompt = res['title'] +'\n'+ res['content'] + '\n' + new_url +'\n'
|
||||
|
||||
raws.append(tmp_prompt)
|
||||
if '搜索' in search_type and len( prompt + tmp_prompt +'\n' + "\n以上是关键词 " + original_search_query + " 的搜索结果,用简体中文总结简报,在文中用(网址)标注对应内容来源链接。结果:" ) <1600:
|
||||
raws.append(tmp_prompt)
|
||||
prompt += tmp_prompt +'\n'
|
||||
elif len( prompt + tmp_prompt +'\n' + "\n以上是 " + original_search_query + " 的网络知识。"+ search_type +",如果使用了网络知识,在文中用(网址)标注对应内容来源链接。结果:") <1600:
|
||||
prompt += tmp_prompt +'\n'
|
||||
|
|
|
@ -832,9 +832,8 @@ def search():
|
|||
res['content'] = res['content'].replace("This Tweet was deleted by the Tweet author.","Deleted Tweet.")
|
||||
|
||||
tmp_prompt = res['title'] +'\n'+ res['content'] + '\n' + new_url +'\n'
|
||||
|
||||
raws.append(tmp_prompt)
|
||||
if '搜索' in search_type and len( prompt + tmp_prompt +'\n' + "\n以上是关键词 " + original_search_query + " 的搜索结果,用简体中文总结简报,在文中用(网址)标注对应内容来源链接。结果:" ) <1600:
|
||||
raws.append(tmp_prompt)
|
||||
prompt += tmp_prompt +'\n'
|
||||
elif len( prompt + tmp_prompt +'\n' + "\n以上是 " + original_search_query + " 的网络知识。"+ search_type +",如果使用了网络知识,在文中用(网址)标注对应内容来源链接。结果:") <1600:
|
||||
prompt += tmp_prompt +'\n'
|
||||
|
|
Loading…
Add table
Reference in a new issue