diff --git a/searx/webapp.py b/searx/webapp.py index e3079fbcc..47c0f9421 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -942,8 +942,8 @@ function send_webchat(elem) for (tmp_prompt in raws) { - if String( prompt.data.prompt + tmp_prompt +'\n' + "\n以上是任务 " + word + " 的网络知识。用简体中文完成任务,如果使用了网络知识,删除无关内容,在文中用(链接)标注对应内容来源链接,链接不要放在最后。结果:").length <2000: - prompt.data.prompt += tmp_prompt +'\n' + if (( prompt.data.prompt + tmp_prompt +'\n' + "\n以上是任务 " + word + " 的网络知识。用简体中文完成任务,如果使用了网络知识,删除无关内容,在文中用(链接)标注对应内容来源链接,链接不要放在最后。结果:").length <2000) + prompt.data.prompt += tmp_prompt +'\n' } prompt.data.prompt += "\n以上是任务 " + original_search_query + " 的网络知识。用简体中文完成任务,如果使用了网络知识,删除无关内容,在文中用(链接)标注对应内容来源链接,链接不要放在最后。结果:";