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
aa8e49a98f
commit
3cdc5e6653
1 changed files with 1 additions and 1 deletions
|
@ -762,7 +762,7 @@ def search():
|
||||||
res['content'] = res['content'].replace("Translate Tweet.","")
|
res['content'] = res['content'].replace("Translate Tweet.","")
|
||||||
res['content'] = res['content'].replace("Learn more.","")
|
res['content'] = res['content'].replace("Learn more.","")
|
||||||
tmp_prompt = res['title'] +'\n'+ res['content'] + '\n' + new_url +'\n'
|
tmp_prompt = res['title'] +'\n'+ res['content'] + '\n' + new_url +'\n'
|
||||||
if len(prompt)+len(tmp_prompt)<3000:
|
if len(prompt)+len(tmp_prompt)<2800:
|
||||||
prompt += tmp_prompt +'\n'
|
prompt += tmp_prompt +'\n'
|
||||||
if prompt != "":
|
if prompt != "":
|
||||||
gpt = ""
|
gpt = ""
|
||||||
|
|
Loading…
Add table
Reference in a new issue