Update webapp.py

This commit is contained in:
luxtiasco 2023-02-20 02:04:04 +08:00 committed by GitHub
parent b0851205cc
commit c313c9f48e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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