Update webapp.py

This commit is contained in:
luxtiasco 2023-02-22 04:36:02 +08:00 committed by GitHub
parent f13a02c6e3
commit 1e39c561e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -876,7 +876,7 @@ var lock_chat=0;
function send_chat() function send_chat()
{ {
if(lock_chat!=0) return; if(lock_chat!=0) return;
const knowledge = document.querySelector("#chat > p").innerHTML.replace(/<.*?>.*?<\/.*?>/g, ''); const knowledge = document.querySelector("#chat > p").innerHTML.replace(/<.*?>.*?<\/.*?>/g, '') +"\n以上是关键词 ''' + search_query.query + r''' 的搜索结果\n"
let word = document.querySelector("#chat_input").value; let word = document.querySelector("#chat_input").value;
if(word.length==0 || word.length > 140) return; if(word.length==0 || word.length > 140) return;
if(word_last.length>500)word_last.slice(500) if(word_last.length>500)word_last.slice(500)