Update webapp.py

This commit is contained in:
Joseph Cheung 2023-02-19 20:46:55 +08:00
parent 6068ea6baa
commit cadd979978

View file

@ -709,7 +709,7 @@ def search():
if res['content'] == '': continue
new_url = 'https://url'+str(len(url_pair))
url_pair[new_url] = res['url']
tmp_prompt = new_url +'\n'+ res['url']['title'] +'\n'+ res['url']['content']
tmp_prompt = new_url +'\n'+ res['title'] +'\n'+ res['content']
if len(prompt)+len(tmp_prompt)<=1500:
prompt += tmp_prompt +'\n'
if prompt != "":