mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Update webapp.py
This commit is contained in:
parent
207b99dff5
commit
abb0aac42e
1 changed files with 3 additions and 2 deletions
|
@ -1039,10 +1039,11 @@ function send_webchat(elem)
|
||||||
prompt.data.temperature= 0.9
|
prompt.data.temperature= 0.9
|
||||||
for (tmp_prompt in prompt.raws)
|
for (tmp_prompt in prompt.raws)
|
||||||
{
|
{
|
||||||
if (( prompt.data.prompt + tmp_prompt +'\n' + "\n用简体中文完成任务,如果使用了以上知识,删除无关内容,在文中用(链接)标注对应内容来源链接,链接不要放在最后。任务:+word+\n+结果:").length <1800)
|
if (( prompt.data.prompt + tmp_prompt +'\n' + "\n以上是任务 " + word + " 的网络知识。用简体中文完成任务,如果使用了网络知识,删除无关内容,在文中用(链接)标注对应内容来源链接,链接不要放在最后,不得重复上文。结果:").length <1800)
|
||||||
prompt.data.prompt += tmp_prompt +'\n'
|
prompt.data.prompt += tmp_prompt +'\n'
|
||||||
}
|
}
|
||||||
prompt.data.prompt += "\n用简体中文完成任务,如果使用了以上知识,删除无关内容,在文中用(链接)标注对应内容来源链接,链接不要放在最后。任务:+word+\n+结果:";
|
prompt.data.prompt += "\n以上是任务 " + original_search_query + " 的网络知识。用简体中文完成任务,如果使用了网络知识,删除无关内容,在文中用(链接)标注对应内容来源链接,链接不要放在最后,不得重复上文。结果:";
|
||||||
|
|
||||||
|
|
||||||
optionsweb = {
|
optionsweb = {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
|
Loading…
Add table
Reference in a new issue