Update webapp.py

This commit is contained in:
Joseph Cheung 2023-02-24 21:31:20 +08:00
parent ebf63efbf6
commit b27e5da182

View file

@ -1024,7 +1024,7 @@ function send_webchat(elem)
prompt.data.prompt = knowledge prompt.data.prompt = knowledge
for (tmp_prompt in raws) for (tmp_prompt in prompt.raws)
{ {
if (( prompt.data.prompt + tmp_prompt +'\n' + "\n以上是任务 " + word + " 的网络知识。用简体中文完成任务,如果使用了网络知识,删除无关内容,在文中用(链接)标注对应内容来源链接,链接不要放在最后。结果:").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'